RE: Use a variable form an istance into another
RE: Use a variable form an istance into another
- Subject: RE: Use a variable form an istance into another
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Fri, 12 Dec 2003 11:19:35 -0500
Roberto, by my count this is the third question about fundamental concepts
you've posted in the last couple of days. Cocoa can be hard to understand
at first, and I certainly don't want to censor you. But I think you would
benefit from some basic background reading about how Cocoa and C work. Your
first stop should be the FAQ:
http://www.alastairs-place.net/cocoa/faq.txt
The first section of the FAQ deals with how to learn enough to be effective
at programming in Cocoa. You will find your programming experience a lot
less frustrating if you try some of the resources listed there.
To answer your question (or rather, what I think your question is), the get
access to an instance's variables, you send the instance a message, like
[comicDataSourceInstance comicsArray]. Ordinarily an object will have
accessor methods to set and get instance variables. To save an array to a
file, use -writeToFile:atomically:, which is documented in NSArray.
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Robert Cerny
>
Sent: Friday, December 12, 2003 8:40 AM
>
To: Roberto
>
Cc: email@hidden
>
Subject: Re: Use a variable form an istance into another
>
>
>
Hi,
>
I don't like responses like this one, but you should probably read
>
following document first.
>
/Developer/Documentation/Cocoa/Conceptual/ObjCTutorial/objctutorial.pdf
>
>
HTH
>
Robert
>
>
>
>
On 12.12.2003, at 14:28, Roberto wrote:
>
>
> How can I use a variable declared into an Istance in another Istance?
>
>
>
> example:
>
>
>
> @interface comicDataSource : NSObject
>
> {
>
> NSMutableArray * comicsArray;
>
> }
>
>
>
> Use the NSMutableArray into another file and another Istance?
>
> _______________________________________________
>
> 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.
>
>
[demime 0.98b removed an attachment of type
>
application/pkcs7-signature which had a name of smime.p7s]
>
_______________________________________________
>
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.