• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with ApplicationShouldTerminateAfter...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with ApplicationShouldTerminateAfter...


  • Subject: Re: Problems with ApplicationShouldTerminateAfter...
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 23 Feb 2004 17:14:48 -0800

On Feb 23, 2004, at 5:08 AM, Robert Cerny wrote:
I'm trying to implement
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(id)sender
{
return YES;
}
it should be
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender
{
return YES;
}

Although it is strictly correct to type the argument appropriately, the declaration does not affect things at run time (see Obj-C documentation).

Put another way, if you're having a problem with the method, it's not because you typed "sender" as 'id' instead of 'NSApplication'.

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Problems with ApplicationShouldTerminateAfter... (From: Roberto Sobachi <email@hidden>)
 >Re: Problems with ApplicationShouldTerminateAfter... (From: Robert Cerny <email@hidden>)

  • Prev by Date: Resizable Borderless Window
  • Next by Date: Re: Bindings question
  • Previous by thread: Re: Problems with ApplicationShouldTerminateAfter...
  • Next by thread: Problems deleting a Window in IB
  • Index(es):
    • Date
    • Thread