Re: -[NSWindow makeFirstResponder:] error when NSDrawer is involved

2017-03-25 Thread kata
> 2017/03/25 3:04、Bill Cheeseman wrotes: > > Has anybody else encountered this issue? Any suggestions? I got the same error message even the drawer is hidden. I set my custom control as the first responder in a dialog window just after loading xib. I could not rid of this message, then red

Re: Maximum image size ?

2016-09-22 Thread kata
I don't know the definition but my experience. JPEG accepts up to 65500 pixels width and height. Core Graphics framework supports more than that of course, and also PNG accepts more. Some NSBezierPath methods will fail to draw around 8 and many methods fail over 12, then i support up

Re: Window position updates on demand?

2015-12-17 Thread kata
In my case, my window has no title bar and no frame, I do dragging window by myself. In the NSView in the window - (void)mouseDown:(NSEvent*)event { self.mouse = [event locationInWindow]; } - (void)mouseDragged:(NSEvent *)event { NSPoint location = [NSEvent mouseLocation]; location.x

Re: Beep ( duration, frequency )

2015-09-23 Thread kata
> Windows has a Beep function: > > BOOL WINAPI Beep( > _In_ DWORD dwFreq, > _In_ DWORD dwDuration > ); > > Is there anything this easy for OS X? If you want to use different sounds for some alerts or notifications, you can use sytem provided sounds, such as "Basso", "Frog", "Submarine", etc.

IKSaveOptions have trouble on Mavericks

2014-03-27 Thread kata
Hi, all. When my program adds IKSaveOptionsAccessoryView to NSSavePanel, the accessory view occupies max height always and system prints error messages to console as follows. start 2014/03/28 10:37:17.870 SimpleDEMViewer[24153]: Unable to simultaneously satisfy constraints: ( "