• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[NSOpenPanel] Is there a way to access the contextual information?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [NSOpenPanel] Is there a way to access the contextual information?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSPopupButton & URLs
  • Next by Date: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Previous by thread: Re: NSPopupButton & URLs
  • Next by thread: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Index(es):
    • Date
    • Thread