Re: How to write a "function" in Cocoa?
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