• 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: Did I reinvent the wheel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Did I reinvent the wheel?


  • Subject: Re: Did I reinvent the wheel?
  • From: Colin Cornaby <email@hidden>
  • Date: Mon, 21 Jul 2008 13:12:21 -0700

I've written a very similar framework for MySQL, and am gearing up to write one for Postgresql, so here's my opinion...

(Apologies if one of these has already been addressed, or you've already looked at adding the feature...)

• Write a table controller class. You can instantiate them in IB which lets you quickly build database access apps without using any code... the next point is related to this...
• Write support for selecting using NSPredicate. Again, this goes hand in hand with bindings. The bindings system provides nice predicate support using NSPredicate, in addition to this being the Cocoa standard for selecting objects from groups. It won't quite be as powerful as a select statement, but it still works very nicely. You can even do joins if you do things right.
• Use KVO for accessing columns. Override valueForKey: and implement your accessor there. Also override setValue:forKey:. Again, this will make bindings happy.


Basically... bindings, bindings, bindings. :)

It will make your projects easier to manage, although it will require a little bit more code in your framework.

Also one more key for bindings is that you have to enforce single instances for each row, but it looks like you do that already.

On May 9, 2008, at 11:10 AM, Western Botanicals wrote:

I would like your opinions about the following framework.

http://www.justingiboney.com/code

I am an IS major, not a CS major, so I don't know what it is like for probably most of you. You probably have a much better grasp on application development than I do.

What I have been taught, is to use a framework like the one above, only I was taught in Java. I wanted to apply what I have learned, so I created these classes (one of which I have already put out to the list).

Does this framework already exist in cocoa (did I reinvent the wheel)?
Is this a framework that is used (or likely to be used) in the real world?


Thanks,

Justin Giboney




_______________________________________________

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

_______________________________________________

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


  • Prev by Date: Re: Crash drawing shadows
  • Next by Date: Re: Crash drawing shadows
  • Previous by thread: Re: Did I reinvent the wheel?
  • Next by thread: Re: Xcode3 vs Xcode2 - two problems
  • Index(es):
    • Date
    • Thread