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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-10-2009, 03:20 AM   #1 (permalink)
ovidiu
Candy Mountain, Charlie..
 
ovidiu's Avatar
 
Join Date: Mar 2009
Location: Romania
Age: 25
Posts: 116
Default appDelegate synthesizing

Hello everyone.

I was just wondering how you people deal with the appDelegate.

So for me, the way I do it is the next one:

Code:
@interface MyClass : NSObject {

	MyAppDelegateClass *appDelegate;	
}
@property (nonatomic, assign) MyAppDelegateClass *appDelegate;	

@implementation MyClass

@synthesize appDelegate;

-(id) init{
[self setAppDelegate:(MyAppDelegateClass *)[[UIApplication sharedApplication] delegate]];
return self;
}

@end
Nothing is wrong so far, but I just wanted to know if that is a good habit to use or not. How do you do it?
__________________
Junior iPhone Developer
Mobile Touch Romania

Last edited by ovidiu; 07-10-2009 at 04:44 AM.
ovidiu is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,746
Threads: 89,202
Posts: 380,573
Top Poster: BrianSlick (7,129)
Welcome to our newest member, raKinesic
Powered by vBadvanced CMPS v3.1.0

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