e an NSMutableArray so that we can simply load up objects into it. Next we take care of some configuration... wserView. I'll discuss this more below).
Display Objects
Now that we have this setup we need to have a w... rowserItem.
The item is simple, it has an NSImage object and an NSString that provides an ID for the item.... ) imageRepresentation;
</code>
In order for this object to conform to the informal protocol, these three
entation Is Chosen ====
When you tell an NSImage object to draw itself, it searches its list of image rep... single representation—for example, if the NSImage object has two color TIFF representations with the same ... st send a setDataRetained: message to the NSImage object. Preferably, you should send this message immediately after creating the image object. If you send the message after rendering the imag
[B setDeletgate:self]
또는
[B setDelegate:someObject]
로 코드를 추가한다.
====== 델리게이트는 어떻게 쓰는건가? ======
A ... ort <Cocoa/Cocoa.h>
@interface AppController : NSObject
{
// IBOutlet NSWindow* mainWindow;
}
- (id)... end
</code>
====== 델리게이트는 어떻게 동작하는 건가? ======
NSObject에서 상속된 모든 클래스는
- (BOOL) respondsToSelector:(SE