Skip navigation.
 
mlRe: beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard
FROM : glenn andreas
DATE : Fri Jan 11 19:32:10 2008

On Jan 11, 2008, at 12:21 PM, Damian Terentiev wrote:

> Hi!
> I have a problem calling a custom sheet in Leopard.
> When I call
>  [NSApp beginSheet:panel
>    ModalForWindow:window
>      modalDelegate:self
>    didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
>        contextInfo:info];
> I get a no '-
> beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo:' 
> method found warning and it doesn't work.
> The documentation about sheets was not updated for Leopard.
> Is it a bug and is there any workaround?
>
> Yours,
> Damian Terentiev


It's "modalForWindow" not "ModalForWindow" - all Cocoa selectors 
fragments start with lower-case characters (unless it is an 
abbreviation)


Glenn Andreas                      <email_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next 
generation of fractal art

Related mailsAuthorDate
mlbeginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard Damian Terentiev Jan 11, 19:21
mlRe: beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard glenn andreas Jan 11, 19:32