Fwd: Dictionary? Array? or other
Fwd: Dictionary? Array? or other
- Subject: Fwd: Dictionary? Array? or other
- From: Aaron Wallis <email@hidden>
- Date: Sun, 4 Sep 2005 01:44:41 +1000
From: Aaron Wallis <email@hidden>
Date: 4 September 2005 1:28:40 AM
To: "Dirk van Oosterbosch, IR labs" <email@hidden>
Subject: Re: Dictionary? Array? or other
the source for tempExpression is:
// Create a expression object to relate to its properties
expressionEntry * tempExpression = [[ expressionEntry
alloc ] init];
[tempExpression setSeperator : splitStringBy ];
[tempExpression setResult : splitStringResult ];
where expressionEntry is a class I have written.
And there is a [tempExpression release] a few lines down...
expressionsItems is declared in the header file, as its pretty much
a global variable...
and when I NSLog it I get null....
On 04/09/2005, at 1:18 AM, Dirk van Oosterbosch, IR labs wrote:
On 3-sep-05, at 17:05, Aaron Wallis wrote:
Thanks a million Dirk !
Just one quick question, does this code:
[ expressionItems setObject: tempExpression
forKey:@"someUniqueID" ];
look correct to you?
expressionItems is a NSMutableDictionary, however if I try to
access its contents I get nil returned rather than the objects
and/or thier properties and methods?
How are you allocating / releasing expressionItems and/or the
tempExpression's?
Try NSLog (@"The dictionary: %@", expressionItems); to debug.
d.
-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands
http://labs.ixopusada.com
-----------------------------
_______________________________________________
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