• 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: Xcode 3, problem creating Core Data UI via drag and drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 3, problem creating Core Data UI via drag and drop


  • Subject: Re: Xcode 3, problem creating Core Data UI via drag and drop
  • From: Tom Davies <email@hidden>
  • Date: Tue, 20 Nov 2007 21:40:58 +1100


On 20/11/2007, at 2:52 PM, Chris Hanson wrote:

On Nov 19, 2007, at 6:40 PM, Tom Davies wrote:

(cross-posted from xcode-users)

Thanks, this is the right place for your question.

Good to know -- I wasn't sure exactly where it fell.


I'm using Xcode 3 on 10.5.1. I have created a Core Data Application (not a document app) via Xcode, and am trying to drag an entity from my model to the app's window in IB.

I end up with a black square, both in IB and when I compile and run my application. I think the black square is the NSCollectionView.

What do you answer to the questions walking you through the type of interface you want to create for your entity? One of the options is to create an interface based on NSCollectionView, but that's only one of the options available.


Also, you can drag a "Core Data Entity" directly from the Library in Interface Builder 3 into your interface, and IB will walk you through choosing an entity from a data model in an open project, choosing the type of interface to create, what properties to show in that interface, and so on.

Perhaps I should go through the document oriented Core Data tutorial first, but I don't actually want a document based app.


The steps I follow are:

(Xcode) File, New Project..., Core Data Application, Next, type name "X", Finish.
Open X_DataModel.xcdatamodel, Add Entity, set name to "Foo", Add Attribute, set name to "bar", type NSString, not optional.
Click 'Build', build succeeds.
Open MainMenu.nib
(IB) Open "Window"
(Xcode) Alt-drag "Foo" icon to IB "Window" window.
(IB) "New Core Data Interface" dialog opens. Choose Collection view, select "Box" but not "Search Field", click Next Leave "bar" property selected, click Finish.
Window displays a black square.


The Window hierarchy is NSWindow -> NSView -> NSScrollView -> NSCollectionView

Thanks for any guidance -- would it help if I made a zip of the project available to download?

Regards,
 Tom
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode 3, problem creating Core Data UI via drag and drop
      • From: Chris Hanson <email@hidden>
    • Re: Xcode 3, problem creating Core Data UI via drag and drop
      • From: mmalc crawford <email@hidden>
References: 
 >Xcode 3, problem creating Core Data UI via drag and drop (From: Tom Davies <email@hidden>)
 >Re: Xcode 3, problem creating Core Data UI via drag and drop (From: Chris Hanson <email@hidden>)

  • Prev by Date: how to convert int to char with objective c?
  • Next by Date: Re: Non Linear CAAnimation of properties
  • Previous by thread: Re: Xcode 3, problem creating Core Data UI via drag and drop
  • Next by thread: Re: Xcode 3, problem creating Core Data UI via drag and drop
  • Index(es):
    • Date
    • Thread