• 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
Simple question: How do you store a sender's ID?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • RE: Simple question: How do you store a sender's ID?
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: Reading data from .clipping file?
  • Next by Date: Re: [OT] Debugger protection (was: Implementing Licensing ...)
  • Previous by thread: Reading data from .clipping file?
  • Next by thread: RE: Simple question: How do you store a sender's ID?
  • Index(es):
    • Date
    • Thread