Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening/Saving files via Sheets...



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


References: 
 >Opening/Saving files via Sheets... (From: Steven Canfield <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.