Re: Xcode 3, problem creating Core Data UI via drag and drop
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