>> Hmmm... I'm building a VST3/vstgui4 plug-in, and I think the base SDK and >> deployment targets are set as required, like this: >> >> SDKROOT = macosx10.5 >> SDKROOT[arch=x86_64] = $(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk >> >> When I build either a 32-bit or 64-bit build, while running on 10.6, it >> executes -setDirectoryURL with no problems. I haven't tried running in 10.5 >> yet. >> >> Can I keep my above settings, but do this? >> >> if ([openPanel respondsToSelector:@selector(setDirectory)]) >> [openPanel setDirectory:nsParentPath]; >> else >> { >> NSURL* nsParentURL = [NSURL >> fileURLWithPath:nsParentPath isDirectory:YES]; >> [openPanel setDirectoryURL:nsParentURL]; >> //[nsParentURL release]; // No...crashes! must be used by panel >> } > > > That code works in either 32-bit or 64-bit under 10.6, but it seems to be > throwing an exception or something on 10.5(.8), because when I execute it, no > dialog appears and I can continue along with other work in my plug-in, as if > nothing had happened. (This is all executed from a button press in a sheet.) >
D'oh! I forgot the ':' in that selector... should have been respondsToSelector:@selector(setDirectory:). Silly computer, always doing what I say, not what I want... -Howard _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com