Hallo,
ich baste gerade an einem Textfield das wie die grüne anzeige von iTunes aussehen soll,
Und bekomms natürlich nicht so richtig hin
Alles anzeigen
Was mache ich falsch?
Chris
ich baste gerade an einem Textfield das wie die grüne anzeige von iTunes aussehen soll,
Und bekomms natürlich nicht so richtig hin
Quellcode
- -(void)drawWithFrame: (NSRect)frame inView: (NSView *)control
- {
- NSRect roundedFrame = frame;
- [NSGraphicsContext saveGraphicsState];
- roundedFrame.size.height--;
- [[NSColor darkGrayColor] setFill];
- NSBezierPath *path = [NSBezierPath bezierPath];
- [path appendBezierPathWithRoundedRect: roundedFrame xRadius: 6.0f yRadius: 6.0f];
- [path fill];
- roundedFrame.origin.y += 1;
- [[NSColor lightGrayColor] setFill];
- path = [NSBezierPath bezierPath];
- [path appendBezierPathWithRoundedRect: roundedFrame xRadius: 6.0f yRadius: 6.0f];
- [path fill];
- roundedFrame = NSInsetRect (roundedFrame, 1, 1);
- [[NSColor whiteColor] setFill];
- path = [NSBezierPath bezierPath];
- [path appendBezierPathWithRoundedRect: roundedFrame xRadius: 6.0f yRadius: 6.0f];
- [path fill];
- roundedFrame = NSInsetRect (roundedFrame, 0, 1);
- [[NSColor colorWithCalibratedRed: (236.0f/255.0f) green: (239.0f/255.0f) blue: (223.0f/255.0) alpha: 1.0f] setFill];
- path = [NSBezierPath bezierPath];
- [path appendBezierPathWithRoundedRect: roundedFrame xRadius: 6.0f yRadius: 6.0f];
- [path fill];
- [NSGraphicsContext restoreGraphicsState];
- // [self drawInteriorWithFrame: frame inView: control];
- }
Was mache ich falsch?
Chris
Man macht einfach solange irgendwelche Dinge, bis man tot ist.
Und dann bekommen die anderen Kuchen.
Und dann bekommen die anderen Kuchen.