FROM : Sherm Pendley
DATE : Tue Dec 17 21:16:09 2002
On Monday, December 16, 2002, at 10:39 PM, Aidas Dailide wrote:
> I have a simple question here. I want to share some variables between
> NSObjects. After "sharing" shared variables are nil's. What is the
> correct way to share variables between NSObjects(and others ofcourse)?
>
> I used methods like -(int)returnNumber{ return my_number; }
In the most general case, accessor methods such as you describe above
are the preferred means of providing access to instance variables.
sherm--
If you listen to a UNIX shell, can you hear the C?
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Tue Dec 17 21:16:09 2002
On Monday, December 16, 2002, at 10:39 PM, Aidas Dailide wrote:
> I have a simple question here. I want to share some variables between
> NSObjects. After "sharing" shared variables are nil's. What is the
> correct way to share variables between NSObjects(and others ofcourse)?
>
> I used methods like -(int)returnNumber{ return my_number; }
In the most general case, accessor methods such as you describe above
are the preferred means of providing access to instance variables.
sherm--
If you listen to a UNIX shell, can you hear the C?
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Aidas Dailide | Dec 17, 04:39 | |
| Sherm Pendley | Dec 17, 21:16 | |
| Andrew | Dec 18, 01:14 |






Cocoa mail archive

