• 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
CustomView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CustomView


  • Subject: CustomView
  • From: R T <email@hidden>
  • Date: Fri, 29 Apr 2005 10:56:18 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

Created CustomView in IB and I want to change its
size,location and color it.

I have an instance variable...

#import <Cocoa/Cocoa.h>
@interface MyPixelFinder : NSImageView
{
	IBOutlet NSView *oppView;
	NSRect oppBounds;
}
@end

and here is the block of code I've tried...

oppBounds =  NSMakeRect(406, 525, 50, 100);
[[oppView superview] setNeedsDisplayInRect:[oppView
frame]];	[oppView setFrame: primBounds];
[oppView lockFocus];
[NSBezierPath bezierPathWithRect:oppBounds];
pixelColor = [NSColor redColor];
[pixelColor set];
NSRectFill(oppBounds);
[oppView unlockFocus];
[oppView setNeedsDisplay:YES];

I also play around with...

[oppView setHidden:NO];
[oppView setHidden:YES];


I'm missing the boat somewhere, any help greatly
appreciated

Thanks
Rick T.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Window Controller and performClose
  • Next by Date: Saving Images with Core Data (i.e., JPEG, TIFF, etc.)
  • Previous by thread: Re: Window Controller and performClose
  • Next by thread: Saving Images with Core Data (i.e., JPEG, TIFF, etc.)
  • Index(es):
    • Date
    • Thread