• 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: Confused by Syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused by Syntax


  • Subject: Re: Confused by Syntax
  • From: Clark Cox <email@hidden>
  • Date: Sat, 14 May 2005 10:17:30 -0400

On 5/14/05, Theodore H. Smith <email@hidden> wrote:
> I was looking at a sample for NSToolbar. I saw this method:
>
> - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar
> itemForItemIdentifier:(NSString *)itemIdentifier
> willBeInsertedIntoToolbar:(BOOL)flag
>
> What is going on here? The method name is itemForItemIdentifier,

No, the name is:
"toolbar:itemForIdentifier:willBeInsertedIntoToolbar:"

The method returns (NSToolbarItem*), and takes three parameters:

(NSToolbar*)toolbar
(NSString*)itemIdentifier
(BOOL)flag

--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Confused by Syntax (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: NSCustomView?
  • Next by Date: Re: NSCustomView?
  • Previous by thread: Re: Confused by Syntax
  • Next by thread: Interface builder doesn't show my classes
  • Index(es):
    • Date
    • Thread