• 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: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting focus to text field in drawer


  • Subject: Re: Setting focus to text field in drawer
  • From: Arthur Clemens <email@hidden>
  • Date: Tue, 12 Aug 2003 12:23:39 +0200

In some code I encountered this:

oSaveButton
mProgressTime

where o stands for outlet, and m for member. Any opinions on this?

Arthur Clemens




On dinsdag, augustus 12, 2003, at 11:37 AM, Alastair J.Houghton wrote:

On Monday, August 11, 2003, at 07:15 pm, Scott Anguish wrote:

I prefix all my vars with this now

thisIsMyPrefix_itIsNobodyElsesPrefix_

How about using something like

#define PRIVATE(x) thisIsMyPrefix_itIsNobodyElsesPrefix_ ## x

then you don't have as much to write ;->

Also, if you do encounter a clash, it's much easier to change your prefix.

e.g.

@interface Foo : NSObject
{
int PRIVATE(bar);
}

-(int) PRIVATE(bar);
-(void) PRIVATE(initWithInt:(int)num);

@end

Kind regards,

Alastair
_______________________________________________
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.
_______________________________________________
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: 
 >Re: Setting focus to text field in drawer (From: "Alastair J.Houghton" <email@hidden>)

  • Prev by Date: Re: Triangle Collapse
  • Next by Date: Re: Triangle Collapse
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread