my preferences sheet appears under XCode not under the app ...
my preferences sheet appears under XCode not under the app ...
- Subject: my preferences sheet appears under XCode not under the app ...
- From: "Yvon Thoraval" <email@hidden>
- Date: Sun, 2 Sep 2007 17:51:12 +0200
when it is the first run of my app, i force the app to open the preferences
sheet like that :
def awakeFromNib()
puts "@isFirstRun = #{@isFirstRun}"
if @isFirstRun
@prefs = Preferences.new
showPreferences( @mainWindow )
@prefs.save
end
[...]
however in that circumstance (first run) the sheet appears under an XCode
window NOT under the mainWindow of my app.
i do have the same result passing nil instead of @mainWindow to
showPreferences
the "normal" way (working) to open this sheet :
def showPreferences( notification )
NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo(
@panelWindow, @mainWindow, self, :prefsDidEndSheet_returnCode_contextInfo,
nil )
end
is it possible to avoid that ?
--
yvon
_______________________________________________
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