nsnotifications Questions
1
Solved
I have the following code that adds an observer in the loading of the view.
- (void)viewDidLoad
{
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserverForName:@"com.app.livedat...
Claireclairobscure asked 17/1, 2012 at 7:50
1
Solved
I've got a fairly important conceptual issue that many people have asked about, but there isn't a readily available clear answer to be found by searching.
My application is simple: Several rows of...
Gopher asked 22/12, 2011 at 18:26
7
Solved
I am using the following NSNotifications within a UIView so that the view can be notified when a UIKeyboard appears and adjust its position (frame) on screen:
[[NSNotificationCenter defaultCenter]...
Agrostology asked 20/11, 2011 at 10:1
2
Solved
why do I get "wait_fences: failed to receive reply" for this code? Is it the way I'm using notification to communicate back to the main thread?
#import "ViewController.h"
@implementation ViewCont...
Lucky asked 7/11, 2011 at 5:19
2
Solved
Is it ok to use of a notification to communication back to the main thread of an IOS app? (cf performSelectorOnMainThread). That is, there are are there any gottcha's for this purpose?
Background
...
Zebrawood asked 7/11, 2011 at 4:13
2
Solved
I would like to be notified whenever an entity of a certain type is added (and maybe changed/removed).
I read it is possible by adding an observer to the managedObjectContext. However, I haven't ...
Otilia asked 1/9, 2011 at 21:57
1
I have an Mac Application using a NSPersistentDocument. I want to get notified when Objects are deleted to save this information using Core Data. So I'm listening for NSManagedObjectContextObjectsD...
Bathometer asked 12/10, 2011 at 15:13
1
Solved
Wondering if there is a notification available if a UIAlertView pops up?
Background: my app asks the user for a PIN after a period of inactivity but I would like to prevent it if an alert is on scr...
Pansie asked 7/10, 2011 at 19:49
1
A quick question about NSNotification... If I post two NSNotifications in a method, and they are observed by different objects, what is the sequence of execution of the selector method?
For instan...
Purveyance asked 2/3, 2011 at 7:17
3
Solved
i am New to iphone Development .I Am Trying To Use NslocalNotification In My Project I Need To Give Remeinder For Every 2Hours or For Every Two Days Or For Every Two Months Etc..Currently I am Usin...
Tsarevitch asked 9/8, 2011 at 5:32
2
My program does work like link below:
Update results of NSFetchedResultsController without a new fetch
show result of NSFetchedResultsController to UITableView
get new object from web service an...
Landan asked 2/9, 2011 at 8:17
1
I would like to know when the YouTube MPMoviePlayerViewController appear (programmatically) after have clicked on the UIWebView which permit to play the video in iOS, to get and to have control on ...
Chambliss asked 2/9, 2011 at 19:29
5
Solved
I'm trying to get my head around NSNotificationCenter. If I have something like this in my App Delegate:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(something:)
na...
Interlocutory asked 18/8, 2011 at 20:11
6
Solved
What are the pros and cons of each of them?
Where should I use them specifically?
Cyte asked 18/12, 2009 at 12:33
2
Solved
My question is in regards the object that gets added to a -postNotificationName:object: userInfo: method.
Does the NSNotification retain the object ?
(in a similar fashion to NSMutableDictionary...
Czarra asked 17/3, 2011 at 21:50
6
Solved
Just getting going with iPhone development and Objective-C.
Yesterday I was trying to addObserver for a notification in a view of mine, and I kept getting this error:
unrecognized selector sent t...
Animism asked 10/2, 2011 at 5:13
2
Solved
i am developing a e-book reader and i had encountered the following issue. i am using an IBAction method to post a NSNotification which inturn invokes a action method once a button is tapped. It is...
Fike asked 2/2, 2011 at 9:42
3
Solved
I set up a notification observer in my view controller's init method like so:
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(saveState)
name:UIApplicationWillResignA...
Schistosome asked 13/1, 2011 at 21:40
1
Solved
I've added an observer in a custom UIView I've created under initWithFrame:.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(updateZipFromLocation:)
name:@"zipFoundFr...
Fulllength asked 23/12, 2010 at 2:46
1
Solved
Should it be possible to have a static NSNotification observer (like the code below)? I'm having some problems, and I think it may be due to my singleton class structure.
I don't always have a cla...
Webfoot asked 8/12, 2010 at 1:47
4
Solved
For example, when memory gets low, the System sends a UIApplicationDidReceiveMemoryWarningNotification notification. That's all Apple says in its docs at that point. But where does this notificatio...
Scrannel asked 11/4, 2009 at 18:15
1
Solved
Should I be afraid of using Key-Value Observations (KVO) and NSNotifications? I'm beginning to use them in my app, but I'm a little unfamiliar with the concept of something that could possibly be t...
Research asked 9/8, 2010 at 19:22
1
Solved
I am assuming I need to implement:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(resignActive:)
name:UIApplicationWillResignActiveNotification
object:nil];
but am...
Waine asked 29/7, 2010 at 16:39
4
Solved
I have a Cocoa application that records datestamps on events. I need to know when the system time is reset and by how much, but I can't seem to fine a notification anywhere that tells me such a thi...
Volition asked 27/3, 2009 at 15:55
3
Solved
Is there a way to register for global mouse moved events in Cocoa? I was able to register for the events using Carbon's InstallEventHandler(), but would prefer a Cocoa equivalent. I have looked for...
Maurilia asked 27/10, 2009 at 1:55
© 2022 - 2024 — McMap. All rights reserved.