Re: Opening/Saving files via Sheets...
Re: Opening/Saving files via Sheets...
- Subject: Re: Opening/Saving files via Sheets...
- From: Steven Canfield <email@hidden>
- Date: Sat, 08 Dec 2001 17:38:03 -0600
On 12/8/01 4:37 PM, "John Hvrnkvist" <email@hidden> wrote:
>
On Saturday, December 8, 2001, at 11:20 , Steven Canfield wrote:
>
>
>
>
>
> myPanel = [NSOpenPanel beginSheetForDirectory:NSHomeDirectory()
>
>
>
> "2001-12-08 15:57:14.298 Nimage[744] *** +[NSOpenPanel
>
> beginSheetForDirectory:file:type:modalForWindow:modalDelegate:didEndSelector
>
> :contextInfo:]: selector not recognized"
>
>
beginSheetForDirectory is an instance method, not a class method.
>
myPanel=[NSOpenPanel openPanel];
>
[myPanel beginSheetForDirectory:NSHomeDirectory()
>
file:nil
>
type:fileTypes
>
modalForWindow:myWindow
>
modalDelegate:self
>
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
>
contextInfo:sender];
>
>
Regards.
>
John Hornkvist
>
--
>
ToastedMarshmallow, the perfect Cocoa companion
>
http://www.toastedmarshmallow.com
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
Ok, I fixed it so that it matches what you've got..
Now, it still generates the same runtime thing, but, the warnings pb gives
me are different.
'myDelagate.m:15: warning: `NSPanel' does not respond to
`beginSheetForDirectory:file:type:modalForWindow:modalDelegate:didEndSelecto
r:contextInfo:'
myDelagate.m:23: warning: `NSPanel' does not respond to `filenames'
Arg! Thanks in advance!