Re: ARC and autorelease pools

2014-02-17 Thread Marcel Weiher
On Feb 17, 2014, at 2:08 , Clark Smith Cox III wrote: >> I didn't say take them out. I said why do they need to return an >> autoreleased object. > > Because they always have, and their semantics cannot be changed without > breaking decades worth of non-ARC code. Sort of like the way GC did,

Re: ARC and autorelease pools

2014-02-17 Thread Kevin Meaney
Thanks to Marcel, John McCall, and Clark Smith Cox III for addressing the question I was trying to ask, apologies to others that the question was unclear. So it seems that because ARC provides compatibility between ARC and non-ARC code unlike how garbage collection worked with duplicated framewo

Re: PDFPage init methods not called

2014-02-17 Thread jonat...@mugginsoft.com
On 14 Feb 2014, at 20:32, Antonio Nunes wrote: > On 14 Feb 2014, at 15:09, jonat...@mugginsoft.com wrote: > >> PDFPage has two declared initialiser methods: >> >> - init >> - InitWithImage:(NSImage *)image >> >> When creating a PDFDocument with -initWithURL: neither of the above are >> calle

QTMovieLayer in IKImageBrowserCell

2014-02-17 Thread Dragan Milić
Is it possible to set a QTMovieLayer (yes, I know it's deprecated in 10.9) as the IKImageBrowserCellForegroundLayer of an IKImageBrowserCell? If I do so in cell's -layerForType: method and then play a movie associated with the layer, I can hear the audio track, but there's no movie rendering abo

Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
I have some old gallery code that uses UIScrollView in a paged mode. We are trying to port the code to iOS7 but when we are getting strange behavior. In iOS7 we are constantly getting scrollViewDidScroll with weird offset of negative or some large offset that has huge exponents. Is there a known

auto layout, 10.9, and NSScrollView and friends

2014-02-17 Thread Rob Nikander
Hi, Last year I did some work in Cocoa and discovered that the auto layout stuff was not completely supported in some common AppKit classes. I remember having problems with NSScrollView and NSOutlineView. This message talks in detail about some issues with NSScrollView... http://lists.apple.c

Re: auto layout, 10.9, and NSScrollView and friends

2014-02-17 Thread Kyle Sluder
On Mon, Feb 17, 2014, at 05:48 PM, Rob Nikander wrote: > Has > anything changed with this issue? Constraint based layout seems really > cool, but it's odd that it doesn't work with such important AppKit > classes. Yes. Xcode 5's new XIB format now exposes the scroll view's clip view. You can cre

Re: OpenCL Basic Programming Question

2014-02-17 Thread Gerriet M. Denkmann
On 14 Feb 2014, at 21:53, Gerriet M. Denkmann wrote: > I am trying to build the Basic Programming Sample in: > >

Re: Paged UIScrollview is acting strange in iOS7?

2014-02-17 Thread Scott Andrew
Seems our tool was not taking into account that the size needed to be halved out of our photoshop template. Some reason setting the frame and content size to 2x size of the view was causing the issue. One the scroll view was sized properly all is now working as expected. Scott On Feb 17, 2014,

gcl_create_dispatch_queue where is CL_DEVICE_TYPE_USE_DEVICE_ID

2014-02-17 Thread Gerriet M. Denkmann
gcl.h says: "gcl_queue_flags can be a combination of the followingCL_DEVICE_TYPE_GPU, CL_DEVICE_TYPE_CPU or CL_DEVICE_TYPE_USE_DEVICE_ID [...]" The slides for wwdc 2011 session_401__whats_new_in_opencl also mention CL_DEVICE_TYPE_USE_DEVICE_ID. The problem: I can find no definition for CL_DEVI