• 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
Re: IB and foundation collections (was: IB problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB and foundation collections (was: IB problem)


  • Subject: Re: IB and foundation collections (was: IB problem)
  • From: Chris Purcell <email@hidden>
  • Date: Tue, 23 Sep 2003 23:22:13 +0100

You will not like this but don't instantiate the dictionaries etc, in the nib file do it in code.

vince

I understand. My complaint: we have this lovely tool, IB, to graphically do what we had to code before. Wonder what a GUI will look like at any point? Just open the nib. Several people thanked me for my palette, as they had been doing things the hard way before, coding in iteration over nib members, etc. If you want to put in a nib with varying contents, a collection will do what you'd need a whole custom class for otherwise, and with generic code! My original purpose was to create a simple game with its levels stored in a nib, and using the whole pre-existing toolset of containers seemed so obvious I couldn't understand why IB didn't allow it.

The cocoa-dev list seems to have slipped off the cc list, so I put it back on in case anyone else agrees.

Thanks anyway.

Kritter out.

Vince,

Does this fix also cure a problem I have discovered incorporating NSDictionary/NSArray into new IB nibs? Namely: if two dictionaries have identical contents (which, due to a peculiarity in how I have implemented control-drag-inclusion, actually means any dictionary with the same structure), the nib starts getting inconsistency errors, then eventually dies...


No it doesn't, the problem is that the collection types are class clusters and IB gets very confused when it writes out a NSDictionary and gets back something else.

vince

Oh, right. Can you suggest a fix I could work in? The worst solution AFAICT would be trying to make all dictionaries content-unique, since they won't necessarily be :/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: A line after a string
  • Next by Date: Re: NSFileManager
  • Previous by thread: Re: IB and foundation collections (was: IB problem)
  • Next by thread: Drawing strings to an NSView
  • Index(es):
    • Date
    • Thread