Re: Floating-point differences between ARM processors

2013-01-05 Thread Rick Mann
On Jan 4, 2013, at 23:30 , vincent habchi wrote: > This is not much of a surprise. Afaik, only 6 includes a IEEE double > precision FPU. I suppose you do all your computations using doubles? Well, that shouldn't matter. If a "double" is a double, then even if it can't do it in hardware, it sh

Re: Custom initWithFrame?

2013-01-05 Thread Chris Hanson
On Jan 3, 2013, at 5:28 PM, Eric Dolecki wrote: > I am creating a UIView-based control that I would also like to pass in > parameters at the time of creation. Is this doable? I don't want to keep > calling methods on my object if I can pass all with initwithframe somehow. This is only the case

Re: Floating-point differences between ARM processors

2013-01-05 Thread vincent habchi
On 5 janv. 2013, at 09:02, Rick Mann wrote: > Well, that shouldn't matter. If a "double" is a double, then even if it can't > do it in hardware, it should be done in software, and the result should be > the same. Of course. But, if I am not mistaken, the IEEE norm does not define by itself th

Image manipulation in 10.8

2013-01-05 Thread Amy Gibbs
Hi, i've got a section of code that worked perfectly in 10.5. It doesn't in 10.8 and I can't see why. It's not too complicated, it basically takes a selection of images and combines them into a single image and saves it to a couple of locations. Can anyone point out the problem to me please? Man

Re: Image manipulation in 10.8

2013-01-05 Thread Roland King
Well for a start, in what does doesn't it work? Doesn't write a file, writes a zero-length file, writes an image file which is invalid, blank, what? On 5 Jan, 2013, at 4:44 PM, Amy Gibbs wrote: > Hi, > i've got a section of code that worked perfectly in 10.5. It doesn't in 10.8 > and I can't

Re: Image manipulation in 10.8

2013-01-05 Thread Amy Gibbs
Sorry, I had to reduce the length of the email to post it and deleted the key info! It doesn't place the images on the canvas. Imagine a grid, and this should put an image in each box, and it worked fine in 10.5, now the images are mainly white with just one image in one of the grid boxes ( the

Re: Image manipulation in 10.8

2013-01-05 Thread Ken Thomases
On Jan 5, 2013, at 2:44 AM, Amy Gibbs wrote: > i've got a section of code that worked perfectly in 10.5. It doesn't in 10.8 > and I can't see why. It's not too complicated, it basically takes a selection > of images and combines them into a single image and saves it to a couple of > locations.

Re: Image manipulation in 10.8

2013-01-05 Thread Amy Gibbs
Thanks for this, I've had a look and it looks like quite a lot changed in and after 10.6, it's probably best to rewrite that section completely. I'm a bit of a beginner so looking for a tutorial for image manipulation. I googled it and got to this page in the developer library but it hasn't been

Re: NSSplitView -drawDividerInRect

2013-01-05 Thread koko
Now that you point this out it seems like the answer … sometimes we need a 'head slap'. I already use [NSSplitViewDelegate splitView:additionalEffectiveRectOfDividerAtIndex:] to add a rectangle to a vertical splitter tracking area. So it would be …. 1. Add a view configured as desired to th

Re: Image manipulation in 10.8

2013-01-05 Thread Amy Gibbs
It looks like the issue may be the [img drawInRect:NSMakeRect(x,y,xb,yb) fromRect:NSMakeRect(0,0,0,0) operation:NSCompositeCopy fraction:1]; should be [img drawInRect:NSMakeRect(x,y,xb,yb) fromRect:NSMakeRect(0,0,0,0) operation:NSCompositeSourceOver fraction:1]; I'm trying to check that some i

Re: Duplicating display UITable scrolling, etc. in two apps

2013-01-05 Thread David Duncan
On Jan 2, 2013, at 8:08 AM, Eric E. Dolecki wrote: > I have been asked to provide the following functionality between two iOS > applications: > > App A: UITableView displayed, an interact with it normally. > App B: Display a UITableView with the same information in it, and match the > scrolling,

Re: CALayer renderInContext changes zPosition of some child layers

2013-01-05 Thread David Duncan
On Jan 3, 2013, at 12:46 AM, Markus Spoettl wrote: > Hello, > > I'm having a hard time understanding a problem with CALayer's > -renderInContext: > > I have a custom UIView with custom delegate-drawn sublayers. Almost > everything renders correctly when I do this: > > [[view layer] renderIn

Re: Custom initWithFrame?

2013-01-05 Thread Eric Dolecki
Thanks. I won't be using Storyboard instances or xib. Probably ever. But very good to know. Eric Sent by Eric's faithful iPad. On Jan 5, 2013, at 3:24 AM, Chris Hanson wrote: > On Jan 3, 2013, at 5:28 PM, Eric Dolecki wrote: > >> I am creating a UIView-based control that I would also like

Re: CALayer renderInContext changes zPosition of some child layers

2013-01-05 Thread Markus Spoettl
Hello, On 1/5/13 4:29 PM, David Duncan wrote: >> On Jan 3, 2013, at 12:46 AM, Markus Spoettl wrote: I've been debugging this one for quite a while until I realized that missing layers are not missing but somehow their zPosition got messed up so they ended up below another sibling layer. My be