Skip navigation.
 
mlRe: Alert Sheets hard wired in Interface Builder
FROM : Graham Cox
DATE : Wed May 28 06:24:17 2008

I agree with your assessment. What business has NSApplication 
providing this method? it doesn't make sense.

Easy to fix with a category though.

G.



On 28 May 2008, at 2:06 pm, Jens Alfke wrote:

>
> 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_______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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/graham.<email_removed>
>
> This email sent to graham.<email_removed>

Related mailsAuthorDate
mlAlert Sheets hard wired in Interface Builder John Love May 27, 22:28
mlRe: Alert Sheets hard wired in Interface Builder Sherman Pendley May 27, 22:38
mlRe: Alert Sheets hard wired in Interface Builder Kyle Sluder May 27, 22:40
mlRe: Alert Sheets hard wired in Interface Builder Jens Alfke May 28, 06:06
mlRe: Alert Sheets hard wired in Interface Builder Graham Cox May 28, 06:24
mlRe: Alert Sheets hard wired in Interface Builder Scott Ribe May 29, 05:29
mlRe: Alert Sheets hard wired in Interface Builder Kyle Sluder May 29, 05:38
mlRe: Alert Sheets hard wired in Interface Builder Jens Alfke May 29, 05:39
mlRe: Alert Sheets hard wired in Interface Builder Graham Cox May 29, 05:58
mlRe: Alert Sheets hard wired in Interface Builder Chris Hanson May 29, 07:44
mlRe: Alert Sheets hard wired in Interface Builder John Love May 31, 17:43
mlRe: Alert Sheets hard wired in Interface Builder John Love May 31, 18:40
mlRe: Alert Sheets hard wired in Interface Builder Keary Suska May 31, 19:08
mlRe: Alert Sheets hard wired in Interface Builder Jens Alfke May 31, 19:22
mlRe: Alert Sheets hard wired in Interface Builder John Love Jun 1, 20:19
mlRe: Alert Sheets hard wired in Interface Builder Jens Alfke Jun 1, 21:07
mlRe: Alert Sheets hard wired in Interface Builder Nathan Kinsinger Jun 1, 21:15
mlRe: Alert Sheets hard wired in Interface Builder John Love Jun 3, 22:27