Re: Pinching an iPad

2012-05-16 Thread Gerriet M. Denkmann
On 15 May 2012, at 23:18, David Rowland wrote: > Have you turned on "Multitasking Gestures" in the iPad General Settings? > Yes, I have. > On May 14, 2012, at 9:26 PM, Gerriet M. Denkmann wrote: > >> I have an app which can be pinched and zoomed on an iPhone and on the iPhone >> Simulator.

Re: Thread Deadlock

2012-05-16 Thread Matt Gough
Graham, I have seen similar hangs in other apps while trying to access recent items menu. On my Mac I put it down to occasional disk freezing issues quite common on the model of disk I am using, but maybe its software related after all. Matt On 15 May 2012, at 00:44, Graham Cox wrote: > Hi a

CurrentAddress on iPad

2012-05-16 Thread Gerriet M. Denkmann
I build the Apple Sample Code CurrentAddress and it works as expected. Then I changed Build Settings → Deployment → Targeted Device Family to: iPhone/iPad. Now I can neither zoom nor pinch not pan the displayed map in the iPad Simulator. (It still works as expected in the iPhone Simulator) Wh

Re: Dissappearing string

2012-05-16 Thread Uli Kusterer
On 15.05.2012, at 03:38, Charlie Dickman wrote: > Note that the retainCount has changed in the first case but not in the second. > Does anyone have any ideas as to what is happening? This is object-oriented programming. *anything* can have happened. While the external API is guaranteed and defin

Re: Dissappearing string

2012-05-16 Thread Uli Kusterer
On 16.05.2012, at 15:02, Uli Kusterer wrote: > - copy the string (which means the retain count stays 1, and the string gets > deallocated when you release it) Forgot to mention: When you *really* have an NSAttributedString (an immutable object), -copy can even be optimized out and be the same a

Re: Thread Deadlock

2012-05-16 Thread Jerry Krinock
On 2012 May 16, at 02:23, Matt Gough wrote: > Graham, > > I have seen similar hangs in other apps while trying to access recent items > menu. > > On my Mac I put it down to occasional disk freezing issues quite common on > the model of disk I am using, but maybe its software related after all

Re: Bottom-edge constraint not enforced in IB but is in runtime?

2012-05-16 Thread Kevin Cathey
Yes, this is a bug in IB. Kevin On 14 May 2012, at 01:23 , Rick Mann wrote: > I have a split view with an NSView in the top part, and inside that are a > couple of buttons with layout constraints to the bottom and left edge > (standard distance). > > If I move the split bar in IB, the NSView

Re: CurrentAddress on iPad

2012-05-16 Thread David Duncan
On May 16, 2012, at 2:40 AM, Gerriet M. Denkmann wrote: > > I build the Apple Sample Code CurrentAddress and it works as expected. > > Then I changed Build Settings → Deployment → Targeted Device Family to: > iPhone/iPad. > > Now I can neither zoom nor pinch not pan the displayed map in the iP

Re: Layout constraint related exceptions

2012-05-16 Thread Antonio Nunes
I should add that all the reports I have received come from 10.7.4 systems, so it looks like 10.7.4 may have introduced a new issue in the auto layout system. This would also explain why the issue did not come up until a few days ago. -António On 16 May 2012, at 07:02, Antonio Nunes wrote: > I

Re: Nested XML -> CoreData

2012-05-16 Thread Koen van der Drift
Thanks for the feedback, very helpful. I will definitely swich to an sqlstore, right now I am using xml for debugging purposes. I will also create entities for each node. - Koen. On Tue, May 15, 2012 at 7:49 PM, Chris Hanson wrote: > On May 15, 2012, at 7:29 AM, Koen van der Drift > wrote: >

Re: Dissappearing string

2012-05-16 Thread Charlie Dickman
The actual problem is that I am telling an NSTextfield to set it's contents (the method is actually a part of NSCell from which NSTextfield inherits it) and it does not appear in the textfield. It used to work but I have no idea what I did to break it. On May 16, 2012, at 12:59 AM, Graham Cox w

Re: Dissappearing string

2012-05-16 Thread Jens Alfke
On May 16, 2012, at 9:44 AM, Charlie Dickman wrote: > The actual problem is that I am telling an NSTextfield to set it's contents > (the method is actually a part of NSCell from which NSTextfield inherits it) No; NSTextField inherits that method from NSControl. (It _contains_ an NSTextFieldCell

Re: Layout constraint related exceptions

2012-05-16 Thread Kevin Cathey
Antonio, please file a bug, this sounds like a system issue, not an issue in your code. Kevin On 16 May 2012, at 09:31 , Antonio Nunes wrote: > I should add that all the reports I have received come from 10.7.4 systems, > so it looks like 10.7.4 may have introduced a new issue in the auto lay

Re: Dissappearing string

2012-05-16 Thread Charlie Dickman
And a good "guess" it was because it got me to add the release and = nil to the code... possible[strlen(possible)] = '\0'; NSString *possibleString = [NSString stringWithFormat: @"%s", possible]; NSAttributedString *theAttributedString = [[NSAttr

Re: Dissappearing string

2012-05-16 Thread Stephen J. Butler
On Wed, May 16, 2012 at 12:39 PM, Charlie Dickman <3tothe...@comcast.net> wrote: >        possible[strlen(possible)] = '\0'; This can't possibly work. strlen() depends on the string already being \0 terminated. You can't use strlen() to find the position to add a \0. _

Re: Dissappearing string

2012-05-16 Thread Stephen J. Butler
On Wed, May 16, 2012 at 12:39 PM, Charlie Dickman <3tothe...@comcast.net> wrote: >        NSString *possibleString = [NSString stringWithFormat: @"%s", > possible]; ... and this line is something you shouldn't do. There are a ton of correct methods to create an NSString from a C string: +stringW

Re: Dissappearing string

2012-05-16 Thread Charlie Dickman
An excellent observation! That was probably causing all kinds of problems yet to be seen! Thanks so much! On May 16, 2012, at 1:51 PM, Stephen J. Butler wrote: > On Wed, May 16, 2012 at 12:39 PM, Charlie Dickman <3tothe...@comcast.net> > wrote: >>possible[strlen(possible)] = '\0'; > >

Re: Dissappearing string

2012-05-16 Thread Graham Cox
On 17/05/2012, at 2:44 AM, Charlie Dickman wrote: > The actual problem is that I am telling an NSTextfield to set it's contents > (the method is actually a part of NSCell from which NSTextfield inherits it) > and it does not appear in the textfield. It used to work but I have no idea > what I

Re: mutableBytes Creates Autoreleased Objects

2012-05-16 Thread Greg Parker
On May 12, 2012, at 1:55 PM, Dave Fernandes wrote: > So when a method is declared __attribute__ ((objc_returns_inner_pointer)), > then LLVM tracks regular pointers like it would NSObject pointers to see when > the owning object can be dealloced? Just want to make sure I understand. In theory, t

Re: CurrentAddress on iPad

2012-05-16 Thread Roland King
oh hold on - are you using the original iPad 'compatibility' mode where it just expands to 2x the size and is blurry on the screen instead of having an iPhone NIB and an iPad NIB and a proper dual-mode app? I think you must be, you said you only had one NIB the other day. I would suspect that's

Re: Nested XML -> CoreData

2012-05-16 Thread Jerry Krinock
On 2012 May 16, at 09:34, Koen van der Drift wrote: > I will definitely swich to an sqlstore, right now I am using xml for > debugging purposes. You should switch to the SQLite store sooner rather than later. Although I have seen it implied that it is appropriate to develop with XML and "flip

Re: Dissappearing string

2012-05-16 Thread Charlie Dickman
YOU NAILED IT! My formatter is returning an absurd value when presented with the string! Now if I can just figure out the regular expression to describe the string I'll be in business. A trillion thanks! On May 16, 2012, at 6:56 PM, Graham Cox wrote: > > On 17/05/2012, at 2:44 AM, Charlie Dic

Re: CurrentAddress on iPad

2012-05-16 Thread Gerriet M. Denkmann
On 17 May 2012, at 07:10, Roland King wrote: > oh hold on - are you using the original iPad 'compatibility' mode where it > just expands to 2x the size and is blurry on the screen instead of having an > iPhone NIB and an iPad NIB and a proper dual-mode app? No. When Targeted Device Family = iP