Re: my preferences sheet appears under XCode not under the app ...
Re: my preferences sheet appears under XCode not under the app ...
- Subject: Re: my preferences sheet appears under XCode not under the app ...
- From: "Shawn Erickson" <email@hidden>
- Date: Sun, 2 Sep 2007 09:00:13 -0700
On 9/2/07, Yvon Thoraval <email@hidden> wrote:
> 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 would guess that Ruby is doing something strange here since your
application shouldn't have access to windows from Xcode as possible
targets for a sheet, etc.
> is it possible to avoid that ?
Use objective-c maybe... I mean talk about losing on of the nice
aspects of the language with something like
"NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo(...args...)"
=P
-Shawn
_______________________________________________
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