Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-10-2009, 02:20 AM   #1 (permalink)
ovidiu
Candy Mountain, Charlie..
 
ovidiu's Avatar
 
Join Date: Mar 2009
Location: Romania
Age: 23
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 03:44 AM.
ovidiu is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,314
Threads: 39,112
Posts: 171,494
Top Poster: smasher (2,576)
Welcome to our newest member, biggybillly
Powered by vBadvanced CMPS v3.1.0

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