• 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
my preferences sheet appears under XCode not under the app ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: my preferences sheet appears under XCode not under the app ...
      • From: PGM <email@hidden>
    • Re: my preferences sheet appears under XCode not under the app ...
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Are there any generic controller classes?
  • Next by Date: Re: my preferences sheet appears under XCode not under the app ...
  • Previous by thread: Re: Temporary files best practice?
  • Next by thread: Re: my preferences sheet appears under XCode not under the app ...
  • Index(es):
    • Date
    • Thread