• 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
Classes for a dummy <NSImage access>.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>


  • Prev by Date: bugreport.apple.com / pdf preview bug
  • Next by Date: RE: Classes for a dummy <NSImage access>.
  • Previous by thread: bugreport.apple.com / pdf preview bug
  • Next by thread: RE: Classes for a dummy <NSImage access>.
  • Index(es):
    • Date
    • Thread