• 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: Category or Protocol? (sidetrack)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Category or Protocol? (sidetrack)


  • Subject: Re: Category or Protocol? (sidetrack)
  • From: Rick Kitts <email@hidden>
  • Date: Thu, 21 Apr 2005 05:12:22 -0700


On Apr 21, 2005, at 1:32 AM, Dirk van Oosterbosch wrote:

How intelligent do you want your editor to be?

As "intelligent" as it can be :-)

Since Obj-C can be weakly typed ...

If you have:

id someObject;
// does something to set that to be an instance of some class you or the editor don't know.
[someObject foo];



Then if you change your -foo method in ClassA to be -fooWithFlag:(BOOL)yesOrNo, do you expect your editor to change this above code to:

No. The thing to keep in mind is that the intelligent editors are nothing more than very
specialized databases. So what I would expect an editor to do in this case is to simply point out the potential for a need for a change. Something like "select * from invocations where name=foo and class implements fooOwnerClass or class = 'id'", present me the result set, let me pick includes and apply a transform.


I will wager dollars to donuts though, that if there was an IDE for cocoa/objc that did what IntelliJ/Eclipse did people would quickly modify their coding styles to better inform the editor what's going on.

We should let this drop since it's not cocoa at all, but let me finish by saying that intelligent editing is the second most valuable programming tool/idiom/whatever I've come across in 20 years of coding. It's truly useful.

---Rick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >RE: Category or Protocol? (sidetrack) (From: Jeff Laing <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Rick Kitts <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Ondra Cada <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: John Stiles <email@hidden>)
 >Re: Category or Protocol? (sidetrack) (From: Dirk van Oosterbosch <email@hidden>)

  • Prev by Date: Re: Disable text field as label
  • Next by Date: Re: Bindings, arrangedObjects, and a NSTableView-like view
  • Previous by thread: Re: Category or Protocol? (sidetrack)
  • Next by thread: Re: Category or Protocol? (sidetrack)
  • Index(es):
    • Date
    • Thread