• 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: Alert Sheets hard wired in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alert Sheets hard wired in Interface Builder


  • Subject: Re: Alert Sheets hard wired in Interface Builder
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 27 May 2008 21:06:43 -0700


On 27 May '08, at 1:40 PM, Kyle Sluder wrote:

You're looking for +[NSApplication
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:],

I'm not surprised the OP didn't find this … it's my candidate for Most Misplaced Cocoa Method. I've always wondered why this isn't an instance method on NSWindow, to be sent either to the sheet window
- (void) beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:
or to the host window
- (void) beginSheet:modalDelegate:didEndSelector:contextInfo:


This is an instance [sic] of an OOP design error wherein a particular class method that takes an object as a parameter should be changed into an instance method on that object.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Alert Sheets hard wired in Interface Builder
      • From: Chris Hanson <email@hidden>
    • Re: Alert Sheets hard wired in Interface Builder
      • From: Graham Cox <email@hidden>
References: 
 >Alert Sheets hard wired in Interface Builder (From: "John Love" <email@hidden>)
 >Re: Alert Sheets hard wired in Interface Builder (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
  • Next by Date: Re: Cocoa Classes from C++?
  • Previous by thread: Re: Alert Sheets hard wired in Interface Builder
  • Next by thread: Re: Alert Sheets hard wired in Interface Builder
  • Index(es):
    • Date
    • Thread