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

2009-12-28 Thread Ken Thomases
On Dec 27, 2009, at 5:41 PM, Iceberg-Dev wrote: > 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 meth

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

2009-12-27 Thread Graham Cox
On 28/12/2009, at 10:41 AM, Iceberg-Dev wrote: > I could but isn't the purpose of a contextual info to be "contextual" and so > not attached to the controller instance? Yes, but the controller has the context - it passed 'contextInfo' so it already knows it, whatever it is. However it got tha

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

2009-12-27 Thread Iceberg-Dev
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, NSWind

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

2009-12-27 Thread Graham Cox
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 control

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

2009-12-27 Thread Iceberg-Dev
[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 sh