beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard

  • 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
  • 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                      <gandreas...>
      <http://www.gandreas.com/> wicked fun!
    quadrium | prime : build, mutate, evolve, animate : the next
    generation of fractal art
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today