• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: my preferences sheet appears under XCode not under the app ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >my preferences sheet appears under XCode not under the app ... (From: "Yvon Thoraval" <email@hidden>)

  • Prev by Date: my preferences sheet appears under XCode not under the app ...
  • Next by Date: initializing ivars
  • Previous by thread: my preferences sheet appears under XCode not under the app ...
  • Next by thread: Re: my preferences sheet appears under XCode not under the app ...
  • Index(es):
    • Date
    • Thread