Re: instance variables...
Re: instance variables...
- Subject: Re: instance variables...
- From: Kevin Ballard <email@hidden>
- Date: Fri, 30 Jul 2004 17:53:46 -0400
You use accessor methods, which are methods you implement on the class
to set and return the instance variables. If you have a variable named
'foobar' the common getter method name is 'foobar' and the common
setter method name is 'setFoobar:'.
On Jul 30, 2004, at 4:40 PM, Patel, Nilesh M wrote:
>
Can anyone provide information on a simple problem I am having. I have
>
a bunch of instance variables that I have appended all into one string
>
[NSLog(@"")]. I know instance variables are just that, an instance,
>
but is there a way in COCOA that I can call them from another file
>
within my project. They way I have my app set up currently is that I
>
have an filename_mysql.h and filename_mysql.m doing all of the mysql
>
part. But I need a way to call those instance variables so I can run
>
my mysql_query. Is there a way I can call on this instance variables
>
from another file.m within the project?
>
>
I tired putting mysql calls into the same file as my instance
>
variables and it works perfectly fine. But I kinda wanted to create a
>
generic mysql files which I can use in multi-projects without changing
>
anything.
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
[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.