Re: Setting focus to text field in drawer
Re: Setting focus to text field in drawer
- Subject: Re: Setting focus to text field in drawer
- From: "Alastair J.Houghton" <email@hidden>
- Date: Tue, 12 Aug 2003 10:37:34 +0100
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.