• 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
How to write a "function" in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to write a "function" in Cocoa?


  • Subject: How to write a "function" in Cocoa?
  • From: Joel Norvell <email@hidden>
  • Date: Fri, 3 Nov 2006 23:31:19 -0800 (PST)

Dear Cocoa-dev People,

I've had to implement identical functions in unrelated classes to manipulate
NSRects.  These functions also use Cocoa objects.  Doing a Category doesn't
seem feasible here since NSRect is not a class.  How can I factor these
functions into a file like MyRectUtilities.h?  Is there example code that does
this?  (I've looked around but haven't found anything.)

Thanks,
Joel

P.S. I'm calling them "functions" since they don't use/need "self".




____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail
(http://advision.webevents.yahoo.com/mailbeta/)

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to write a "function" in Cocoa?
      • From: Scott Stevenson <email@hidden>
    • Re: How to write a "function" in Cocoa?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: What all is Cocoa used for?
  • Next by Date: Re: How to write a "function" in Cocoa?
  • Previous by thread: Re: What all is Cocoa used for?
  • Next by thread: Re: How to write a "function" in Cocoa?
  • Index(es):
    • Date
    • Thread