Re: Limiting notifications to one document
Re: Limiting notifications to one document
- Subject: Re: Limiting notifications to one document
- From: Björn Carlström <email@hidden>
- Date: Fri, 1 Oct 2004 22:38:10 +0200
Two problems with that solution.
1. I want to pass another object as argument.
2. Not every object receiving the notification knows which document it
belongs to. I could set this up but it would be rather complex.
Björn
2004-10-01 kl. 16.39 skrev Jiri Volejnik:
Simply pass your document as "anObject" argument to both methods
(-postNotificationName:object: and -addObserver:selector:name:object:)
Jirka
On Oct 1, 2004, at 2:14 PM, Björn Carlström wrote:
I'm sure I'm missing the obvious here, but how do I limit
notifications to one document in a multi-document app. Do I need to
set up a separate notification center for every document or is there
another way?
What I want to do for instance is to send a notification when some
data has been altered that affects how some views look. I only want
to recalc these views when data has been altered in the same
document.
Björn Carlström
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden