[MacRuby-devel] Undefined security bookmark constants

Robert Carl Rice rice.audio at pobox.com
Wed Mar 6 18:45:36 PST 2013


Hi,

I use application scoped secure bookmarks to automatically reopen documents in one of my iTunes Store MacRuby applications. Recently the NSURL constants NSURLBookmarkCreationWithSecurityScope and NSURLBookmarkResolutionWithSecurityScope became undefined. I updates both to BridgeSupport Preview 3 and to 10.8.3 developer beta since I last ran the program so I don't know which update caused the problem.

	def bookmark_for_document( document )
		error		= Pointer.new( :object )
		bookmark	= document.fileURL.bookmarkDataWithOptions( NSURLBookmarkCreationWithSecurityScope,
			includingResourceValuesForKeys:nil, relativeToURL:nil, error:error )

		unless bookmark
			ErrorLog.instance.error( "error creating bookmark #{ error.value.inspect }" )
		end
		
		bookmark
	end

2013-03-06 20:53:41.823 MacDriverLog[2302:303] An uncaught exception was raised
2013-03-06 20:53:41.824 MacDriverLog[2302:303] /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Resources/DocumentsSheetController.rb:187:in `bookmark_for_document': uninitialized constant DocumentClassTableObject::NSURLBookmarkCreationWithSecurityScope (NameError)
	from /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/MacDriverLog.app/Contents/Resources/DocumentsSheetController.rb:174:in `add_document'
	from /Users/robertrice/Library/Developer/Xcode/DerivedData/MacDriverLog-ebberjlfoqoqdzenjgqkdbkehuoj/Build/Products/Debug/


Thanks,
Bob Rice

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20130306/9b5c2e39/attachment.html>


More information about the MacRuby-devel mailing list