Creating non-scaling markers like maps

2013-07-08 Thread Rick Mann
I have a UIScrollView that shows an image we generate. On top of that I create a few marker UIViews. I'd like to allow pinch-zooming of the image view, and have the markers' positions scale accordingly, but not have the markers themselves change size. What's the right way to do this? Set their

Re: NSOutlineViews and Mountain Lion

2013-07-08 Thread Alex Zavatone
So, if in the header for NSOutlineView, there is a struct called __OvFlags that contains an unsigned int called animateExpandAndCollapse, is there any method to set up an NSUserDefaults for an application that already exists so that this property can be set to 0, or am I SOL? On Jul 8, 2013, a

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Mike Abdullah
On 8 Jul 2013, at 18:14, Andy Lee wrote: > On Jul 8, 2013, at 1:08 PM, Boyd Collier wrote: >> Your suggestion sounded worth learning about, but it appears that there's no >> such creature as NSPointerValue. > > I'm guessing Jens meant +[NSValue valueWithPointer:]. > >> Did you perhaps mea

Leak when "drawing too fast"

2013-07-08 Thread Andreas Mayer
This is on OS X 10.8.4. I'm trying to animate something and draw as smoothly as possible. While trying to utilize a display link callback I noticed a memory leak in my application. After some experimentation I found out that this is not directly linked to the callback but instead also happens w

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Scott Ribe
On Jul 8, 2013, at 11:08 AM, Boyd Collier wrote: > Your suggestion sounded worth learning about, but it appears that there's no > such creature as NSPointerValue. Did you perhaps mean NSPointerArray? I suspect it was instead NSValue and pointerValue/setPointerValue to which he was referring.

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Andy Lee
On Jul 8, 2013, at 12:30 PM, Vincent Habchi wrote: > On 8 juil. 2013, at 18:04, Jens Alfke wrote: >> On Jul 7, 2013, at 1:37 PM, Frederick Bartram wrote: >> >>> Have you tried using NSData to store C-arrays? > > No, since my initial problem was to be able to extend the buffer as the > number

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Andy Lee
On Jul 8, 2013, at 1:08 PM, Boyd Collier wrote: > Your suggestion sounded worth learning about, but it appears that there's no > such creature as NSPointerValue. I'm guessing Jens meant +[NSValue valueWithPointer:]. > Did you perhaps mean NSPointerArray? I'm guessing not, since NSPointerArr

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Boyd Collier
Your suggestion sounded worth learning about, but it appears that there's no such creature as NSPointerValue. Did you perhaps mean NSPointerArray? On Jul 8, 2013, at 9:04 AM, Jens Alfke wrote: > > On Jul 7, 2013, at 1:37 PM, Frederick Bartram wrote: > >> Have you tried using NSData to s

Re: Another curiosity: IB warnings "misplaced view"

2013-07-08 Thread Kyle Sluder
On Mon, Jul 8, 2013, at 09:37 AM, Vincent Habchi wrote: > Hi again, > > when I compile my storyboard, I get a bunch of these warnings, one for > each subview. For example: Xcode 5, which generates these warnings, is under NDA. --Kyle Sluder ___ Cocoa-

Another curiosity: IB warnings "misplaced view"

2013-07-08 Thread Vincent Habchi
Hi again, when I compile my storyboard, I get a bunch of these warnings, one for each subview. For example: Explo3D/Explo3D/Base.lproj/Main_iPhone.storyboard Frame for "Label - Label" will be different at run time. Explo3D/Explo3D/Base.lproj/Main_iPhone.storyboard Horizontal position will be 1

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Vincent Habchi
On 8 juil. 2013, at 18:04, Jens Alfke wrote: > On Jul 7, 2013, at 1:37 PM, Frederick Bartram wrote: > >> Have you tried using NSData to store C-arrays? No, since my initial problem was to be able to extend the buffer as the number of primitive read grew. NSData would not do that. Alternatively

Re: The cost of using objects rather than plain C variables

2013-07-08 Thread Jens Alfke
On Jul 7, 2013, at 1:37 PM, Frederick Bartram wrote: > Have you tried using NSData to store C-arrays? Or alternatively use NSPointerValue to wrap a pointer to a malloc’ed C array as an object. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

NSOutlineViews and Mountain Lion

2013-07-08 Thread Alex Zavatone
I've noticed that since Mountain Lion, when clicking on a disclosure triangle in an NSOutlineView, there is an animation of the content rolling out or rolling back up. Is there a way to disable this and have the content display or hide instantly as it was before, where the content display or hi