• 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
Re: [NSOpenPanel] Is there a way to access the contextual information?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSOpenPanel] Is there a way to access the contextual information?


  • Subject: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • From: Iceberg-Dev <email@hidden>
  • Date: Mon, 28 Dec 2009 00:41:27 +0100


On Dec 27, 2009, at 11:48 PM, Graham Cox wrote:


On 28/12/2009, at 9:40 AM, Iceberg-Dev wrote:

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.


Typically the delegate is the controller that calls beginSheet... so whatever it passed as contextInfo is available to any delegate method because it's something internal to this controller object.

Can't disagree with that.

If you've organised your code in such a way that the controller is not the delegate, you might want to reconsider that.

I could but isn't the purpose of a contextual info to be "contextual" and so not attached to the controller instance?



_______________________________________________

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: Ken Thomases <email@hidden>
    • Re: [NSOpenPanel] Is there a way to access the contextual information?
      • From: Graham Cox <email@hidden>
References: 
 >[NSOpenPanel] Is there a way to access the contextual information? (From: Iceberg-Dev <email@hidden>)
 >Re: [NSOpenPanel] Is there a way to access the contextual information? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Next by Date: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Previous by thread: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Next by thread: Re: [NSOpenPanel] Is there a way to access the contextual information?
  • Index(es):
    • Date
    • Thread