• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Dictionary? Array? or other
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Dictionary? Array? or other
      • From: "Dirk van Oosterbosch, IR labs" <email@hidden>
  • Prev by Date: Re: How to return a list from a script command
  • Next by Date: Re: Dictionary? Array? or other
  • Previous by thread: IB Bindings being lost in second NIB
  • Next by thread: Re: Dictionary? Array? or other
  • Index(es):
    • Date
    • Thread