[NSOpenPanel] Is there a way to access the contextual information?
[NSOpenPanel] Is there a way to access the contextual information?
- Subject: [NSOpenPanel] Is there a way to access the contextual information?
- From: Iceberg-Dev <email@hidden>
- Date: Sun, 27 Dec 2009 23:40:11 +0100
[Case]
You display an Open Panel with the method:
- [NSOpenPanel
beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSel
ector:contextInfo:];
and you set a delegate for the panel so that you can filter out some
files with the delegate method - (BOOL) panel:(id)sender
shouldShowFilename:(NSString *) inFileName;
Problem: what if you need to access the contextual info from the
panel:shouldShowFilename: method?
I haven't found a method to access the contextual information in
NSSavePanel, NSPanel, NSWindow.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden