Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-11-2009, 12:03 PM   #3 (permalink)
Ghigo
Registered Member
 
Join Date: Nov 2009
Location: Italy
Posts: 11
Ghigo is on a distinguished road
Default

Sorry I made a mistake in the second solution. It is:
Code:
- (id) init {
	if (self = [super init])
	{
		[myData addObject:obj1];
		[myData addObject:obj2];
		[myData addObject:obj3];
	}
	return self;
}
I wanted to refer directly to myData without using an intermediate array.
The problem is that if i declare myData inside the init function, it will hide the instance variable.
Should I declare the instance variable in some ways? How?
Should I refer to it with self.myData?

Thanks
Ghigo is offline   Reply With Quote
 

» Advertisements
» Online Users: 577
22 members and 555 guests
.Snipe, cclark, cdbeshore, chrisfromnz, djbrooks111, djohnson, Domele, gordo26, iGamesDev, jon01, mediaspree, minglei, ndhieuvn212, nguyenhieu129, Rudy, SuperDietGenius, Techgirl-52, tjfallon, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,319
Threads: 93,989
Posts: 402,412
Top Poster: BrianSlick (7,978)
Welcome to our newest member, st02197
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:47 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.