Skip navigation.
 
mlRe: Alert Sheets hard wired in Interface Builder
FROM : Kyle Sluder
DATE : Thu May 29 05:38:33 2008

On Wed, May 28, 2008 at 11:29 PM, Scott Ribe <<email_removed>> wrote:
> Probably because it involves the run loop and event dispatch, since the
> running a window as a sheet must ensure that the window to which the sheet
> is attached does not receive events, yet a click in that parent window must
> bring the pair forward...


Hrm.  I thought that at first but then I came to the conclusion that
this argument doesn't really hold water.  Plenty of operations on
view-level code are going to affect the run loop mode (-[NSResponder
presentError:], for example), and event dispatch is only relevant to
the NSWindow to which the sheet is attached anyway.

I can live with "it was put in the wrong place", and Jens makes a
point that this seems like a mechanical transformation is possible,
which is usually further evidence that something's wrong.
-[SomeSingleton makeThisObject:doThis:] instead of -[ThisObjectClass
doThis:] seems to actually fit the definition of the anti-pattern.  Oh
well, it's not *broken*, and that's the important part.

--Kyle Sluder

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