Re: why NSTrackingArea doesn't work?

2011-06-23 Thread Nick
Thanks a lot, It worked! :-) I was creating a custom window, and wanted to make the close/minimize/zoom buttons to behave naturally. The only thing that isn't working in my custom window - is the click-through on the [NSWindow standardWindowButton] button (I am using a fake titlebar). Whenever

Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi All, within my application i have a screen where exists and NSBrowser as well as an NSTableViews. can someone please let me know we can implement dragging items from the browser to the table view. any source reference on this would be very helpful. Thanks in Advance, Sandeep.

Animating handwriting

2011-06-23 Thread Gustavo Adolfo Pizano
Hello all. Im wondering if animating handwriting is somehow possible to do, I have been looking but I find only how to do it in flash. Can somebody give me some headlights in the right direction so I can start digging into? Thanks a lot. Gustavo ___

Re: tooltips not firing on first try

2011-06-23 Thread Rick C.
I'll try to play with this a bit more using your suggestions. My issue is I click a button and a panel with the tableview launches, and if my mouse if over where that tableview launches the tooltips will not show. Even if I scroll around to different areas of the tableview the tooltip will

Re: Animating handwriting

2011-06-23 Thread Ken Tozier
If you're writing with the mouse the following might help. It isn't done, still needs some sort of check in the drawRect method to know when you've drawn all the segments and you;ll need to adjust x/y values to the view you're drawing in, but it will get you started. - (void)

Re: Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Mike Abdullah
Look at the datasource API for each view. They both have methods for writing and reading to/from the pasteboard. On 23 Jun 2011, at 09:38, Sandeep Mohan Bhandarkar wrote: Hi All, within my application i have a screen where exists and NSBrowser as well as an NSTableViews. can someone

UIScrollView zooming a rotated view

2011-06-23 Thread Brian Bruinewoud
Hi All, I have a UIScrollView that contains a single UIView. I have a couple of buttons in the toolbar that let me rotate the UIView in 90 degree increments. When the rotation is 0, zooming via the pinch mechanism works fine. When the rotation is 90 or 270, zooming via pinch does nothing. When

Re: Animating handwriting

2011-06-23 Thread Gustavo Adolfo Pizano
Helo Ken. Thanks for answer, I meant, I have some title string already, and I wish to be able to animate as if its being written at the moment, also I forgot to mention that this is for iOS. Once again thanks for the reply. I will still check your code and see how maybe I can apply what I need.

about tiling images.

2011-06-23 Thread Gustavo Adolfo Pizano
Hello all. I have been checking 2010 video about using UIScrollView with images, zooming etc. Thye use CATiledLayer and doing some calculations they now what tile to load depending on the scale, so the performance its quite good and memory usage its as low as possible. Now Im wondering, if I

Using NSScrollView to scroll Infinitely

2011-06-23 Thread bmaclist
I'm running into a problem in 32bit builds with NSScrollView scrolling past the 24 bits of CGFloat (float in 32bit, double in 64bit builds). Is there any way to specify a 'Screen Sized' (ie. float range) documentView and an int64 offset (or something similar), so that my drawing of the

Menu item enabling

2011-06-23 Thread Daniel Luis dos Santos
Hello, I have a submenu of the File menu that gets loaded with menu items on awakeFromNib(). Problem is that the method that does the menu item enabling is not being called on the submenu's items and so they are not enabled. I implemented the validateUserInterfaceItem() method in a class and

Re: Animating handwriting

2011-06-23 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/23/11 6:50 AM, Gustavo Adolfo Pizano wrote: Helo Ken. Thanks for answer, I meant, I have some title string already, and I wish to be able to animate as if its being written at the moment, also I forgot to mention that this is for iOS.

Re: Animating handwriting

2011-06-23 Thread Gustavo Pizano
Hello. Yes kinda. G. On Jun 23, 2011, at 6:34 PM, Conrad Shultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/23/11 6:50 AM, Gustavo Adolfo Pizano wrote: Helo Ken. Thanks for answer, I meant, I have some title string already, and I wish to be able to animate as if its

Re: Animating handwriting

2011-06-23 Thread Steve Christensen
Is this a correct interpretation of what you're trying to do? You have a title string that will be drawn in a handwriting font. You wish to reveal each of the letter strokes over time as if someone were actually writing the title on a piece of paper. On Jun 23, 2011, at 9:45 AM, Gustavo

Re: Animating handwriting

2011-06-23 Thread Gustavo Pizano
YES. :D On Jun 23, 2011, at 7:10 PM, Steve Christensen wrote: Is this a correct interpretation of what you're trying to do? You have a title string that will be drawn in a handwriting font. You wish to reveal each of the letter strokes over time as if someone were actually writing the

Re: about tiling images.

2011-06-23 Thread Matt Neuburg
Message: 6 Date: Thu, 23 Jun 2011 16:18:25 +0200 From: Gustavo Adolfo Pizano gustavxcodepic...@gmail.com Subject: about tiling images. I have been checking 2010 video about using UIScrollView with images, zooming etc. Thye use CATiledLayer and doing some calculations they now what tile

Re: Menu item enabling

2011-06-23 Thread Nick Zitzmann
On Jun 23, 2011, at 10:17 AM, Daniel Luis dos Santos wrote: Hello, I have a submenu of the File menu that gets loaded with menu items on awakeFromNib(). Problem is that the method that does the menu item enabling is not being called on the submenu's items and so they are not enabled.

Re: Cocoa-dev Digest, Vol 8, Issue 462

2011-06-23 Thread Ken Victor
ken, thanx for your responses. i had already discovered and tried addLocalMonitorForEventsMatchingMask:handler: and as you point out in your second reply, it does not work because live resizing is running its own event loop. overriding sendEvent would work if i detect a mouse down in the

tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi All, Any reasons why this method will not get called. Please find below the list of steps that i have taken 1) Connected the dataSource outlet of the Table View to my files owner. 2) Registered the dragTypes for the Table View 3) Did the delegate bindings for the Table 4) Implemented

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Jens Alfke
On Jun 23, 2011, at 2:23 PM, Sandeep Mohan Bhandarkar wrote: 3) Did the delegate bindings for the Table Do you mean that you set up Cocoa bindings? Generally if you use bindings to the table columns, those are used instead of the data source. You wouldn’t want to do both. (Or do you just

Re: constrained window resizing

2011-06-23 Thread Ken Thomases
Hi Ken, On Jun 23, 2011, at 4:12 PM, Ken Victor wrote: so… anyone have any other ideas as to how to get called for a modifier key change will in the midst of a live resize? I'm a bit confused as to why this would be helpful? Why is -windowWillResize:toSize: too late for your needs? Your

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Greg Guerin
Sandeep Mohan Bhandarkar wrote: Have i missed anything else...?? All the protocol's methods are declared @optional. That means the compiler won't check whether you've spelled your implementation's method-name correctly. I have seen more than one case where it was misspelled, despite

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi Jens, I have just wired up the delegate outlet and for the second query. The count shows up as zero but will this be the reason for the method not getting called...? Regards, Sandeep. On Jun 23, 2011, at 2:34 PM, Jens Alfke wrote: On Jun 23, 2011, at 2:23 PM, Sandeep Mohan Bhandarkar

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Jens Alfke
On Jun 23, 2011, at 2:46 PM, Sandeep Mohan Bhandarkar wrote: I have just wired up the delegate outlet and for the second query. The count shows up as zero but will this be the reason for the method not getting called…? Yes. If there aren’t any rows, the table view won’t need to ask for

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Yeah. checked it out by hardcoding a value of 2 in the rows returned now the method seems to be getting called. Thank you for your assistance jens. Regards, Sandeep. On Jun 23, 2011, at 2:49 PM, Jens Alfke wrote: On Jun 23, 2011, at 2:46 PM, Sandeep Mohan Bhandarkar wrote: I have just

Re: constrained window resizing

2011-06-23 Thread Ken Victor
On Jun 23, 2011, at 2:40 PM, Ken Thomases wrote: Hi Ken, On Jun 23, 2011, at 4:12 PM, Ken Victor wrote: so… anyone have any other ideas as to how to get called for a modifier key change will in the midst of a live resize? I'm a bit confused as to why this would be helpful? Why is

Re: constrained window resizing

2011-06-23 Thread Quincey Morris
On Jun 23, 2011, at 14:55, Ken Victor wrote: lets say the user had been resizing the window without any modifier keys pressed, but then realized what s/he really wanted was to resize in only one dimension or to maintain the window’s aspect ratio, so now s/he presses either shift or shift

Re: Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
HI Mike, we have implemented the following delegate methods in our class for the Table view and the respective counter parts for NSBrowser have also been added. I tested by placing break points on these two methods but still was not able to see them getting hit when the drag and drop was

Re: constrained window resizing

2011-06-23 Thread Ken Victor
empirically, it appears that the event tracking loop for window resizing is calling -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] so i can’t simply override NSWindow’s matching method in my subclass. thus, while overriding NSApplication’s method is probably doable, i

Add KVO for observing center property from a UIImageView

2011-06-23 Thread Tales Pinheiro de Andrade
Hi again. I have a custom view (say ECGlassView), subclass from UIImageView, and this view has a subview (say ECNeedleView) that is subclass from UIImageView. I'm trying to add viewA as observer for viewB center, as I can move viewB above viewA. When I try to tho this: [self.needle

Re: Add KVO for observing center property from a UIImageView

2011-06-23 Thread Nick Zitzmann
On Jun 23, 2011, at 5:27 PM, Tales Pinheiro de Andrade wrote: Hi again. I have a custom view (say ECGlassView), subclass from UIImageView, and this view has a subview (say ECNeedleView) that is subclass from UIImageView. I'm trying to add viewA as observer for viewB center, as I can

Re: Menu item enabling

2011-06-23 Thread Daniel Luis dos Santos
Hello, I thought that by implementing the validation method it wouldn't matter if the menu item has an action set on it. That was the problem. Once I set the action, the validation method started being called. Thanks, Daniel On Jun 23, 2011, at 5:42 PM, Nick Zitzmann wrote: On Jun 23,

Re: constrained window resizing

2011-06-23 Thread Ken Victor
using a timer works just fine. and i don’t believe any “debouncing” is necessary as the timer can’t fire if i am already in the process of resizing. thanx ken and quincey, ken On Jun 23, 2011, at 3:57 PM, Ken Victor wrote: empirically, it appears that the event tracking loop for window

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Scott Anguish
On Jun 23, 2011, at 5:49 PM, Jens Alfke wrote: On Jun 23, 2011, at 2:46 PM, Sandeep Mohan Bhandarkar wrote: I have just wired up the delegate outlet and for the second query. The count shows up as zero but will this be the reason for the method not getting called…? Yes. If there

Re: Coalesced updates and refresh rate

2011-06-23 Thread Graham Cox
OK, I needed a diversion from serious work and was intrigued to find out how practical it is to animate many instances of an analogue meter and how far you can go with the standard view update mechanism. Think of it as putting my money where my mouth is. I claimed it should be possible to get