• 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: Newbie architecture Q: EOF / Cocoa / Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie architecture Q: EOF / Cocoa / Java?


  • Subject: Re: Newbie architecture Q: EOF / Cocoa / Java?
  • From: Ricardo Strausz <email@hidden>
  • Date: Wed, 30 Jul 2003 17:15:58 -0500

It is really simple... almost as simple as D2W, but more beuty.

Have a model? if so, you can manipulate your db with out writing a single line of code.
Try the following:


1. create a Cocoa/EO project (taking care of recreate the nib file) importing your model
2. reopen your MainMenu.nib (from PB) and drag a new window from the IB's palette
3. open your model and drag an entity to the window
4. in IB, press cmd+r


Your table will show up!!

If you are familiar with IB, the reset is history, but in case you are not, you can try:

5. dragg a button from the palette to you window
6. connect it (with cntrl+drag) to your display group (it was created in step 3 below) and select the outlet "insert"
7. press cmd+r
8. push the button


You will see a new row in your table!!

Do you want to add some custom logic?

9. select the Classes tab, select your root class (I prefere NSObject) and press enter
10. press cmd+1, add 2 outles (displayGroup and editingContex) and 1 action (doit:)
11. press cmd+opt+f (answer ok to the panel) and press cmd+opt+i
12. connect your outlets, add a button and connect it to your action
13. in PB you will see your files. edit them to implement doit:. for example, try something like


- (IBAction)doti:(id)sender{
	[[displayGroup displayedObjects] addValueForKey:aValue :@"aKey"];
}

14. in PB press cmd+r

You will compile and run your new app. After the table shows up, push the (second) button.

That's it!!
You are now ready to develope the best apps in the market ;^()
Dino


On miircoles, juli 30, 2003, at 15:48 America/Mexico_City, Arturo Pirez wrote:



On Wednesday, July 30, 2003, at 03:23 PM, Ricardo Strausz wrote:

Hola Ken!
I have a couple of questions about this:

* Would I be better off doing [3] as a Cocoa/Java app? I've never done Cocoa/Java yet, only Cocoa/Obj-C, and Pure Java.

You may try Cocoa/EO... it is an unsupported tech but it works. It lets you use the best of both worlds ---use EOF writing in ObjC and with Cocoa on top of it.
Take a look to http://www.wodev.com under the link CocoaEOApplication. You will find there some usefull hints.



Sr. Strausz
We're going to have to get you to put together a tutorial on CococaEOApplication. Or is it easier than
it sounds?




-------
WebObjects in Philadelphia.  You want a cheesesteak with that?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Newbie architecture Q: EOF / Cocoa / Java? (From: Arturo PĂ©rez <email@hidden>)

  • Prev by Date: Re: Nead a guru in to-many relations
  • Next by Date: Help. D2J behaving strangely!!
  • Previous by thread: Re: Newbie architecture Q: EOF / Cocoa / Java?
  • Next by thread: Re: Updating a component inside another component
  • Index(es):
    • Date
    • Thread