Re: NSWindow subclass VERY slow to resize

2010-03-26 Thread Daniel Weber
Finder window redraw so fast at large sizes? On Fri, Mar 26, 2010 at 7:19 AM, Jens Alfke wrote: > > On Mar 26, 2010, at 3:36 AM, Daniel Weber wrote: > >> Is there some way to speed this up? Could something else be going on? > > Sample it and find out. The way I do it is: >

NSWindow subclass VERY slow to resize

2010-03-26 Thread Daniel Weber
Ok, I finally managed to get all the drawing/event-handling code working for my borderless window subclass. The only problem I have left now is performance. I have a basic formula in the mouseDown method that does a little arithmetic and sets the window's new frame. It works fine when the window is

Safari 4-like popup menu

2009-03-25 Thread Daniel Weber
I'm working on an application that suggests things as you type into an NSTextField. I'm using Safari 4 as a reference and see that Apple used what looks like an NSMenu under Leopard as the popup box. Under Safari 3, this looked like a simple NSTableView. My question is, is it actually possible to p

Conditional mouseDownCanMoveWindow for NSView?

2008-10-02 Thread Daniel Weber
I have a single nsview that draws the main content area for my application and a bottom statusbar. This was done instead of using two different views so the user can move objects from the statusbar to the main content area, all with core animation effects. The view is not opaque. The problem I'm ha

Drawing in a window with rounded corners

2008-09-29 Thread Daniel Weber
Hi, I have a custom view that takes up the whole frame of my textured window. Normally, the corners of a textured window are rounded. However, since my custom view is rectangular, it draws over the rounded corners. I am using Core Animation to draw in the view. I think what I need to do is clip my

Animate a CGPath

2008-09-11 Thread Daniel Weber
Hi everyone. I have an NSView with some appkit drawing code that I'm trying to convert to core graphics drawing code. One thing I'm having trouble with is the transition from NSBezierPath to CGPath. Basically in my application, I want to animate the drawing a curve. In other words, I want to show t