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

Re: How to write a "function" in Cocoa?


  • Subject: Re: How to write a "function" in Cocoa?
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 4 Nov 2006 05:12:32 -0500

I hope that was just a random example since you may have been able to use

NSRectFromString()
NSStringFromRect()



On Nov 4, 2006, at 3:56 AM, Joel Norvell wrote:

Scott A. and Scott S.,
Thanks!

Scott S.,
Yes, I'd been heading in the wrong direction.

Sincerely,
Joel


This is what worked:

//  MyRectUtilities.h

#import <Cocoa/Cocoa.h>

@interface MyRectUtilities

- (NSString *) rectString:(NSRect) rectBounds;

@end


// MyRectUtilities.h

#import "MyRectUtilities.h"

@implementation MyRectUtilities

// Given an NSRect, return its scalar "l b r t" values as an ascii string.

- (NSString *) rectString:(NSRect) rectBounds
{
 ...
}

@end




______________________________________________________________________ ______________
We have the perfect Group for you. Check out the handy changes to Yahoo! Groups
(http://groups.yahoo.com)



_______________________________________________ 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: How to write a "function" in Cocoa? (From: Joel Norvell <email@hidden>)

  • Prev by Date: Re: How to write a "function" in Cocoa?
  • Next by Date: Re: Retrieving barcode with a bluetooth barcode scanner ?
  • Previous by thread: Re: How to write a "function" in Cocoa?
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 1320
  • Index(es):
    • Date
    • Thread