Mailing Lists: Apple Mailing Lists

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

my preferences sheet appears under XCode not under the app ...



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.