- (BOOL)canBecomeKeyWindow;
- (BOOL)canBecomeMainWindow;
- (BOOL)acceptsFirstResponder;
of NSView:
- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent;
and the style mask during the initialization:
styleMask:(� your app specific other flags� | NSNonactivatingPanelMask)
First a UIImage needs to be made, to make one with an image from the application bundle use this code:
UIImage *myImage = [ UIImage imageNamed: @"myImage.png" ];
If you need to make an image from a URL you can do something like this:
More info can be found about this technique here: http://idevkit.com/forums/tutorials-code-samples-sdk/3-one-line-uiimage-url.html
UIImage *myImage = [UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: @"http://img.youtube.com/vi/OhOahwZCO1s/2.jpg"]]];
Now that the UIImage has been made it needs to be put into a UIImageView. This is simply done with the -initWithImage: method:
UIImageView *myImageView = [ [ UIImageView alloc ] initWithImage: myImage ];
You can then add the image view as a subview to any other view. You can also change the frame to resize the image.