RE: Does the NSView Drag Protocol has any issues with non-key windows?

2015-05-07 Thread Sanjay Arora
Is it something that broke in 10.10.3? Apparently, it used to work in earlier version. -Original Message- From: cocoa-dev-bounces+saarora=quark@lists.apple.com [mailto:cocoa-dev-bounces+saarora=quark@lists.apple.com] On Behalf Of Gordon Apple Sent: Friday, May 08, 2015 1:54 AM To

Does the NSView Drag Protocol has any issues with non-key windows?

2015-05-07 Thread Sanjay Arora
g Protocol has any issues with non-key window? Regards Sanjay Arora ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple

NSScrollView skips rendering pages

2014-06-16 Thread Sanjay Arora
Hi, My app uses NSScrollView to render a document having complex algorithms to render images. The image rendering operation is quite cpu intensive and takes time. When I scroll the document having multiple pages, using scroll pad or mouse scroll, there happens some jerks in scrolling while re

NSView mouseMoved problem

2012-12-18 Thread Sanjay Arora
Hi , I want to receive mouseMoved on NSView of my window. I have set [self setAcceptsMouseMovedEvents:YES]; on my window and -(BOOL)acceptsFirstResponder returns yes. I do get mouseMoved event on my nsview, but the problem is I get these messages even if the

RE: Draw a nsview with nsbutton cell

2012-10-18 Thread Sanjay Arora
Thanks. That works like a charm! Regards Sanjay -Original Message- From: Graham Cox [mailto:graham@bigpond.com] Sent: 18 October 2012 12:15 PM To: Sanjay Arora Cc: Cocoa Dev Subject: Re: Draw a nsview with nsbutton cell On 18/10/2012, at 4:05 PM, Sanjay Arora wrote: > Is ther

Draw a nsview with nsbutton cell

2012-10-17 Thread Sanjay Arora
Is there a way I could draw my NSView with the how a NSButtonCell draws on NSButton. I mean I only want the drawing part of the NSButton to draw on my nsview all other NSButton actions/events should not work. I don't want to add NSButton as subview of my NSView however. Regards Sanjay __

nswindow close button for my splitview does not display cross while mouse hover

2012-10-16 Thread Sanjay Arora
Hi, I am creating a new Button like the window's close button to attach it to my splitview to give is same close action. The problem is the button does not displays cross while I the hover mouse over it. NSButton *closeControl = [NSWindow standardWindowButton:NSWindowCloseButton forStyleMask

NSScrollView does not honor system preferences for scroll bars ("when scrolling"), when I override the -tile method.

2012-07-04 Thread Sanjay Arora
Below is my code that overlays a control on the horizontal scrollbar. (void)tile { [super tile]; if (subControl) { NSRect subControlFrame = [subControl frame]; NSScroller *horizontalScroller = [self horizontalScroller]; NSRect scro

RE: NSWindow setShowsResizeIndicator not working

2012-07-02 Thread Sanjay Arora
I am on Lion. Any alternatives? -Original Message- From: Lee Ann Rucker [mailto:lruc...@vmware.com] Sent: 02 July 2012 12:56 PM To: Sanjay Arora Cc: cocoa-dev@lists.apple.com Subject: Re: NSWindow setShowsResizeIndicator not working Snow Leopard was the last version to have a visible

NSWindow setShowsResizeIndicator not working

2012-07-01 Thread Sanjay Arora
Hi, I have tried creating a NSWindow programmatically with [window setShowsResizeIndicator:YES]; but it does not show the indicator? Any clue? Regards Sanjay ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

RE: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-18 Thread Sanjay Arora
which is used to create the window could be associated with the NSWindow. How? Regards Sanjay -Original Message- From: Chris Hanson [mailto:c...@me.com] Sent: 19 April 2012 8:32 AM To: Sanjay Arora Cc: cocoa-dev@lists.apple.com Subject: Re: Cocoa equivalent for SetWindowProperty in C

Cocoa equivalent for SetWindowProperty in Carbon

2012-04-18 Thread Sanjay Arora
Hi I am a newbie on Cocoa application development and could not find any method in NSWindow which does the same job as SetWindowProperty used to do in Carbon, Could some one point me to right direction. Thanks Sanjay ___ Cocoa-dev mailing list (Cocoa-