The other thing I should have mentioned is that when you add items to
an array, they are retained, so you don't need to retain each of the
strings. I think the problem is probably your missing nil in the
object list. The array contents are probably hosed.
It's reasonable to retain the array
The list for arrayWithObjects needs to end with a nil object.
- d
On Mar 25, 2008, at 1:16 AM, Samvel wrote:
Reason: I thought that at some point NSNotificationCenter has to be
instantiated in an application loading process and my constructor
may have executed at earlier stage.
Answer: Un
Reason: I thought that at some point NSNotificationCenter has to be
instantiated in an application loading process and my constructor may
have executed at earlier stage.
Answer: Unfortunately the reason was much simpler than that. It turned
out to be an example (answer) to my prev. question
I think you're seeing a debugger anomaly when stepping through things.
Try logging self before and after.
NSLog(@"self = %p", self);
- d
On Mar 25, 2008, at 1:04 AM, Samvel wrote:
On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote:
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into troubl
On Tue, Mar 25, 2008 at 12:51 AM, Samvel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I run into troubles trying to register my object with
> NSNotificationCenter in class
>-(id) init;
>
> Basically here is my constructor:
>-(id) init
>{
> self = [super init];
>
>
On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote:
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
That's a fine place to do it.
//... (at this point self has lost it's original value hav
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
That's a fine place to do it.
//... (at this point self has lost it's original value having
some '
I don't understand what that comment
Hi,
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
Basically here is my constructor:
-(id) init
{
self = [super init];
if( self) {
[[NSNotificationCenter defaultCenter]
ad