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
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
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
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
[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