• 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: Preference Pane Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preference Pane Window


  • Subject: Re: Preference Pane Window
  • From: Aram Greenman <email@hidden>
  • Date: Sat, 25 May 2002 23:29:05 -0700

On Saturday, May 25, 2002, at 07:27 PM, Patrick Tescher wrote:

How do I attach a sheet in a preference pane since the System Preferences
window does not show up in the interface builder.

If you are raising the sheet in your NSPreferencePane subclass
[[self mainView] window] will give you the System Preferences window.

[NSApp beginSheet:sheet
modalForWindow:[[self mainView] window]
modalDelegate:self
didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo:nil];

Hope this helps,

Aram
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Preference Pane Window (From: Patrick Tescher <email@hidden>)

  • Prev by Date: Re: NSTimer and deep sleep
  • Next by Date: Re: Absolute Paths
  • Previous by thread: Preference Pane Window
  • Next by thread: Subclass of NSTextView
  • Index(es):
    • Date
    • Thread