it`s interesting, but do you think what it will be better solution to use NSOpenPanel to change file`s attributes instead of NSBrowser?
I try to compile http://developer.apple.com/mac/library/samplecode/SimpleCocoaBrowser/index.html one is not 10.5 compatible (it is important) if set up USE_ITEM_BASED_API 0 gdb shows following: [Session started at 2010-01-27 00:32:48 +0200.] GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys001 Loading program into debugger… Program loaded. run [Switching to process 926] Running… 2010-01-27 00:32:48.732 SimpleBrowser[926:a0f] *** Assertion failure in -[NSBrowserCell _objectValue:forString:errorDescription:], /SourceCache/AppKit/AppKit-1038.25/AppKit.subproj/NSCell.m:1531 2010-01-27 00:32:48.736 SimpleBrowser[926:a0f] An uncaught exception was raised 2010-01-27 00:32:48.736 SimpleBrowser[926:a0f] Invalid parameter not satisfying: aString != nil 2010-01-27 00:32:48.741 SimpleBrowser[926:a0f] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff84885444 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff88aeb0f3 objc_exception_throw + 45 2 CoreFoundation 0x00007fff84885267 +[NSException raise:format:arguments:] + 103 3 Foundation 0x00007fff82b7bd66 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198 4 AppKit 0x00007fff81a1bb5a -[NSCell _objectValue:forString:errorDescription:] + 168 5 AppKit 0x00007fff81a1ba21 -[NSCell setStringValue:] + 45 6 SimpleBrowser 0x0000000100001620 -[AppController browser:willDisplayCell:atRow:column:] + 320 7 AppKit 0x00007fff81cb517f -[NSBrowser _loadCell:atRow:col:inMatrix:] + 471 8 AppKit 0x00007fff81e29235 -[NSMatrix drawRect:] + 1707 9 AppKit 0x00007fff81aedfae -[NSView _drawRect:clip:] + 3390 10 AppKit 0x00007fff81aecc21 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1325 11 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 12 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 13 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 14 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 15 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 16 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 17 AppKit 0x00007fff81c20259 -[NSBrowser _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 81 18 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 19 AppKit 0x00007fff81aecf8b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2199 20 AppKit 0x00007fff81aeb2f3 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 767 21 AppKit 0x00007fff81aeae17 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 254 22 AppKit 0x00007fff81ae76bf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2683 23 AppKit 0x00007fff81a60f37 -[NSView displayIfNeeded] + 969 24 AppKit 0x00007fff81a28f87 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1050 25 AppKit 0x00007fff81a28b1c -[NSWindow orderWindow:relativeTo:] + 94 26 AppKit 0x00007fff819f4a2c -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1726 27 AppKit 0x00007fff819f2b49 loadNib + 226 28 AppKit 0x00007fff819f2059 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248 29 AppKit 0x00007fff819f1e91 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326 30 AppKit 0x00007fff819ef413 NSApplicationMain + 279 31 SimpleBrowser 0x0000000100001185 main + 37 32 SimpleBrowser 0x0000000100001154 start + 52 ) terminate called after throwing an instance of 'NSException' Program received signal: “SIGABRT”. sharedlibrary apply-load-rules all kill quit The Debugger has exited with status 0.(gdb) 2010/1/26 Corbin Dunn <corb...@apple.com>: > > On Jan 26, 2010, at 10:10 AM, Jens Alfke wrote: > >> >> On Jan 26, 2010, at 10:03 AM, Corbin Dunn wrote: >> >>> Jens/Andrew --- the SnowLeopard documentation is incorrect; it was added in 10.6, but "retro-published" to 10.4. So, it is available in 10.4 and higher. >> >> It's definitely not in the headers of the 10.5 SDK. > > No, and it won't be; we don't modify old SDKs. > >> Are you saying that the method was added to the class in 10.4 but not made public till 10.6? So it would be kosher in 10.4/5 to declare it in a category on NSSavePanel and call it? > > Yes -- that is correct. The availability macro in 10.6 states that it is available on 10.4 and higher. > > Another way to access it is to build with the 10.6 SDK but set MIN/MAX target as 10.4, but the category is the easiest solution. > > -corbin > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/arielfapple%40gmail.com > > This email sent to arielfap...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com