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, 05:00 AM   #5 (permalink)
ovidiu
Candy Mountain, Charlie..
 
ovidiu's Avatar
 
Join Date: Mar 2009
Location: Romania
Age: 25
Posts: 116
Default

Quote:
Originally Posted by ftm View Post
How about just creating a #define like this:

Code:
#define  APPDELEGATE   ((MyAppDelegate*)[[UIApplication sharedApplication] delegate])
Now anywhere you want to access the App Delegate, just use "APPDELEGATE" in code.
Very nice elegant solution, I didn't think of that. Thanks.
__________________
Junior iPhone Developer
Mobile Touch Romania
ovidiu is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,739
Threads: 89,196
Posts: 380,544
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Realtor Email List
Powered by vBadvanced CMPS v3.1.0

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