Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: instance variables...



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.


References: 
 >instance variables... (From: "Patel, Nilesh M" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.