• 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: Obj-C NSRect methods help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obj-C NSRect methods help


  • Subject: Re: Obj-C NSRect methods help
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 12 Jan 2005 07:29:55 +0100

At 19:18 Uhr -0800 11.01.2005, Mark Dawson wrote:
I know NSRect is a struct; however, NSPoint is an object, so I should be using the message format, right? I must be missing some subtle pieceŠ

Hold down the command key while you double-click on NSPoint in one of your source files in xCode. That will bring up the declaration of NSPoint and immediately tell you where your mistake is.


"should be using the message format" also sounds fishy to me. You should re-read the chapters on objects in the ObjC book to make sure you understand the difference. This phrasing almost sounds as if you expected to be able to call any function using message syntax or any message using function syntax. Both aren't true (admitted, there are IMPs, but that's beside the point).

Oh, if you didn't know about Command-Double-Click, the following list of tips and tricks like that will probably interest you:
<http://www.zathras.de/angelweb/x2004-12-05b.htm>
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Obj-C NSRect methods help (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: MySQL Escaped String
  • Next by Date: Re: How to remove the quit menu item of the Doc menu of an application?
  • Previous by thread: Re: Obj-C NSRect methods help
  • Next by thread: How to remove the quit menu item of the Doc menu of an application?
  • Index(es):
    • Date
    • Thread