Classes for a dummy <NSImage access>.
Classes for a dummy <NSImage access>.
- Subject: Classes for a dummy <NSImage access>.
- From: jean-michel daix <email@hidden>
- Date: Wed, 10 Oct 2001 11:45:48 +0200
Well,
I know it's another stupid question.
My application is working fine but I want to split my code in different
classes (better to re use it in the futur). My problem is with the class I
use to create my background.
My program is based on an NSView. My background class look a litllte bit
like that:
BackGround.h :
#import <Cocoa/Cocoa.h>
@interface BackGround : NSObject {
NSImage *backgroundImage;
}
/* Initialization and De-Allocation */
- (id)init;
- (void)dealloc;
// return backgroundImage
- (NSImage*)image;
// modify backgroundImage
- (void)setImage:(NSImage *)image;
@end
My question is simple and stupid : How do I access my backgroundImage from
the main part of my program ?
I have used @class BackGround; in my header and #import "BackGround.h" in my
source but there I don't know how to reach my image. Please, help :(
-----------------------------------
jean-michel daix / email@hidden
Sorry, I9m French !
visit <
http://www.adforum.com>