• 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: Cocoa newbie frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa newbie frustration


  • Subject: Re: Cocoa newbie frustration
  • From: Joe Howard <email@hidden>
  • Date: Mon, 8 Oct 2001 01:03:28 -0700

I have a couple more suggestion that haven't been mentioned much. In Project Builder try command double clicking any term that you don't know what it is.
It will automatically change to the definition of that item if there is only one definition of that text. If you do this trick on say a method name that is overriden in multiple classes it will give a popup menu of those definitions that you can choose from. If there are too many it just pops down the find panel and search for it. Definitely a really cool feature if you ask me.

This technique is how I've learned a lot about Cocoa. I had the same question and found out that NSRect is really just a structure for an NSSize (size) and an NSPoint (origin). These in turn specify the x, y, height, width properties of the rectangle. Note that these are structs and not objects. Not sure why but in your code you refer to them like this:
[view frame].size.height

Hope some of this helps.

Joe Howard


On Sunday, October 7, 2001, at 10:16 PM, email@hidden wrote:

2. Apple's documentation is #?!@. I have been searching for the
documentation of the Objective-C's version of NSRect on their website.
Where is it? I found the Java version, but NSRect is not present at the
corresponding Objective-C Foundation documentation. Not only that, but
in a lot of sections I find the following "Description forthcoming" .
Forthcoming? When? This is not very professional.


  • Follow-Ups:
    • RE: Cocoa newbie frustration
      • From: Brian Hook <email@hidden>
  • Prev by Date: Re: Undo in a Sheet -- no takers?
  • Next by Date: keyEvent characters
  • Previous by thread: Re: Cocoa newbie frustration
  • Next by thread: RE: Cocoa newbie frustration
  • Index(es):
    • Date
    • Thread