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 03-15-2010, 09:31 PM   #1 (permalink)
vertine
Registered Member
 
Join Date: Sep 2009
Posts: 80
vertine is on a distinguished road
Default best practice: delegate vs NSNotification

hi, i have a dilemma. I have a UIView that is userInteractionEnabled and recieves events from
Code:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
however, i also have a class that is a Mediator(puremvc, if you know it) that has been assigned this view as its viewComponent. I would like this mediator to know about the touches to the uiview. What is the best way to pass the NSSet and the UIEvent? currently i made a custom protocol of the UIView and had the Mediator conform...but then i started thinking about NSNotifications, etc...any thoughts on this?
vertine is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,540
Threads: 94,060
Posts: 402,670
Top Poster: BrianSlick (7,988)
Welcome to our newest member, duke22
Powered by vBadvanced CMPS v3.1.0

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