Simple question: How do you store a sender's ID?
Simple question: How do you store a sender's ID?
- Subject: Simple question: How do you store a sender's ID?
- From: "Frederick C. Lee" <email@hidden>
- Date: Thu, 8 Apr 2004 13:03:03 -0700
Scenario:
I have a sender:
- (IBAction)Enter:(id)sender;
I understand that I can change the character & get info from this
sender via [sender < >]; message.
However, this is only good within the particular sender method.
Suppose I wish to refer to this particular 'sender' in a different
method within the code?
I need to store the sender's id.
1) How is that done?
(id) mySender = [[NSObject alloc] initwithname [sender getID]]; <---
something like this?
Eventually, in a separate method, I would like to access this
particular sender (button/field whatever):
[<sender id> setTitle:@"Area Code:"]; <-- but I need to replace
'sender' with 'mySender', since 'sender' is local scope.
Thanks in advance,
Regards,
Ric.
_______________________________________________
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.