Hi,

I've modified STStructure.[hm] so that it can receive extent: message and create another instance of rect with point and size. It seems it work rather well :-)

@interface STStructure (NSPointAdditions)
- (STStructure *)extent:(NSSize)aSize;
@end

@implementation STStructure (NSPointAdditions)
- (STStructure *)extent:(NSSize)aSize {
NSPoint p = [self pointValue];
return [STStructure structureWithRect:NSMakeRect(p.x, p.y, aSize.width, aSize.height)];
}
@end



On Feb 25, 2005, at 05:55 AM, Matthew D Swank wrote:

Matthew D Swank wrote:


I posted an example application that depends on a small external framework I wrote: http://lists.gnu.org/archive/html/discuss-gnustep/2005-02/ msg00446.html.


--------------------------------------------------
Sungjin Chun, Developer
Embian
[EMAIL PROTECTED]



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to