On May 5, 2012, at 3:31 AM, qvacua wrote:
> - (void)keyDown:(NSEvent *)theEvent {
>unichar key = [[theEvent characters] characterAtIndex:0];
>NSLog(@"\\U%X pressed", (int)key);
>
>[self interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
> }
>
> - (BOOL)acceptsFirstResponder {
>
No, it does not help. I think since I am not scaling the view or sth.
like that, the difference between frame and bounds should be
irrelevant for this problem.
Tae
On Sat, May 5, 2012 at 6:12 PM, Andy Lee wrote:
> On May 5, 2012, at 3:31 AM, qvacua wrote:
>> - (void)drawRect:(NSRect)dirtyRect {
On May 5, 2012, at 3:31 AM, qvacua wrote:
> - (void)drawRect:(NSRect)dirtyRect {
>[[NSColor yellowColor] set];
>NSRectFill([self frame]);
> }
Using [self frame] is a bug. [self frame] returns a rectangle in the
*superview's* coordinate system, whereas NSRectFill expects a rectangle in
*s
Yes, since I am using a mouse, the scroll bars are visible and using
the scroll wheel I can scroll.
Tae
On Sat, May 5, 2012 at 12:24 PM, Stephane Sudre wrote:
> A question that could give a better idea of the issue:
>
> Is the scroller thumb visible?
>
> On Sat, May 5, 2012 at 12:31 AM, qvacua
A question that could give a better idea of the issue:
Is the scroller thumb visible?
On Sat, May 5, 2012 at 12:31 AM, qvacua wrote:
> I have got a very basic question about NSScrollView. I embedded my
> custom NSView into an NSScrollView using Xcode's "Embed In..." menu
> item. The following is
I have got a very basic question about NSScrollView. I embedded my
custom NSView into an NSScrollView using Xcode's "Embed In..." menu
item. The following is my custom NSView:
@implementation MyView
- (void)drawRect:(NSRect)dirtyRect {
[[NSColor yellowColor] set];
NSRectFill([self frame])