FROM : Jens Alfke
DATE : Wed May 28 06:06:43 2008
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
DATE : Wed May 28 06:06:43 2008
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 mail archive

