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: 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.