intermittent sync services crash

2010-09-27 Thread Martin Hewitson
Dear list, I have a core-data app which syncs its data over mobile-me via sync services. Every couple of days or so, the app crashes on different machines. The stack trace is pasted below. I'm using essentially the same syncing code I use for other apps and I haven't seen this problem before.

Re: Acquiring an NSConnection otherwise than by registered name?

2010-09-27 Thread Ken Thomases
On Sep 28, 2010, at 12:24 AM, Oleg Krupnov wrote: > My question is: is it possible to acquire the connection in another > way than using a name? Yes, of course. Have you looked at the NSConnection class reference, where it documents multiple methods for obtaining connection objects? First of a

Acquiring an NSConnection otherwise than by registered name?

2010-09-27 Thread Oleg Krupnov
Hi, Here is the way to acquire connection from a server, as described in the docs: NSConnection* theConnection = [NSConnection connectionWithRegisteredName:@"server" host:nil]; My question is: is it possible to acquire the connection in another way than using a name? Why I want this: My client

Re: App locking up in NSView call

2010-09-27 Thread Peter Ammon
On Sep 27, 2010, at 1:38 PM, Mike Silva wrote: > We have a simple application with multiple NSView subclasses (like Buttons, > TextFields, etc.) that are being updated every couple seconds with status > information. After a couple days of running continuously the application > will lock on th

Re: NSWindow Deferred Window Display Support

2010-09-27 Thread Kyle Sluder
On Sep 27, 2010, at 7:07 PM, Richard Somers wrote: > In Mac OS X 10.6 there is a new constant defined. > > #define NSAppKitVersionNumberWithDeferredWindowDisplaySupport > > The documentation says "Developers should not need to use this constant > unless they are writing applications for Mac OS

NSWindow Deferred Window Display Support

2010-09-27 Thread Richard Somers
In Mac OS X 10.6 there is a new constant defined. #define NSAppKitVersionNumberWithDeferredWindowDisplaySupport The documentation says "Developers should not need to use this constant unless they are writing applications for Mac OS X v10.5 and earlier." Now consider the designated initiali

Problems with starting editing outline view with Chinese marked text and diacriticals

2010-09-27 Thread Gideon King
Hi everyone, I have an outline view where I want to set things up so that when the user starts typing, it both starts editing and replaces the contents of the selected row with the typed character. Here is what I have been using: - (void)insertText:(id)aString { if ([self selectedRow] ==

Binding Popup 'content' : No need for +keyPathsForValuesAffectingFoo

2010-09-27 Thread Jerry Krinock
When using a popup button in an table column, the 'content' binding may be bound to an array giving the items in the menu. Furthermore, the array contents may be different in different rows. Example: Consider a veterinary application with a table of "Sick Animals", containing a table column na

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Jerry Krinock
Thanks for all the tips, in particular this… > http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Exceptions/Tasks/ControllingAppResponse.html I see there are lots of possibilities :( ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Accessing Database.

2010-09-27 Thread Andy Satori
Not to mention that static linking the GPL mysql libraries may have nasty ramifications when it comes to the App Store and licensing. I have PostgreSQL libs built for iPhone and they work well. Licensing is a non-issue in that environment, but I think that in order to put a MySQL app on the appst

Re: Accessing Database.

2010-09-27 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/27/10 2:00 PM, Cameron Mc Gorian wrote: > Hi, > > I am very new to iPhone and iPad development. > > I want to know if it is possible and if there are any tutorials for > accessing information in an SQL database, i.e one that I would > usually ac

Re: Accessing Database.

2010-09-27 Thread Nick Zitzmann
On Sep 27, 2010, at 3:00 PM, Cameron Mc Gorian wrote: > I want to know if it is possible and if there are any tutorials for accessing > information in an SQL database, i.e one that I would usually access through > phpmyadmin to add and edit tables etc. The database has already been created > a

Accessing Database.

2010-09-27 Thread Cameron Mc Gorian
Hi, I am very new to iPhone and iPad development. I want to know if it is possible and if there are any tutorials for accessing information in an SQL database, i.e one that I would usually access through phpmyadmin to add and edit tables etc. The database has already been created and is used b

Re: App locking up in NSView call

2010-09-27 Thread Mike Silva
I've attached the entire stack trace. the code should not be drawing from multiple threads. Here are the stacks of all the threads: Thread 12 (process 145): #0 0x961577da in mach_msg_trap () #1 0x96157f47 in mach_msg () #2 0x973f6dbf in __CFRunLoopRun () #3 0x973f5d34 in CFRunLoopRunSpecifi

App locking up in NSView call

2010-09-27 Thread Mike Silva
We have a simple application with multiple NSView subclasses (like Buttons, TextFields, etc.) that are being updated every couple seconds with status information. After a couple days of running continuously the application will lock on this stack trace: Thread 1 (process 145): #0 0x96185782 i

Re: Set NSSegmentedControl ToolTip

2010-09-27 Thread koko
Word up, Peter! -koko On Sep 27, 2010, at 1:49 PM, Peter Ammon wrote: On Sep 27, 2010, at 12:35 PM, k...@highrolls.net wrote: Is it possible to set a tool tip for a segment of a segmented control programatically? That is what would be the receiver of -setToolTip? Or, how does one get t

Re: Selection of object in popup button

2010-09-27 Thread Mikael Wämundson
Hi Alejandro, Thanks for your reply. Can you explain further what you mean with "binding the appearance attributes of your cell"? /Mikael 26 sep 2010 kl. 22.35 skrev Alejandro Rodríguez: > Hey Mikael, > > In order to solve your issues you need to get away from selection. Providing > the dat

Re: Menus to distinguish Numpad vs normal digit keys

2010-09-27 Thread Peter Ammon
On Sep 27, 2010, at 11:35 AM, Russ wrote: > I have different menu keys set up in my app for control-4 and > control-number-pad-4, but it seems that Cocoa is not distinguishing between > the > two. (There are several key equivalents in the number-pad area that are used > for > variants on dir

Re: Set NSSegmentedControl ToolTip

2010-09-27 Thread Peter Ammon
On Sep 27, 2010, at 12:35 PM, k...@highrolls.net wrote: > Is it possible to set a tool tip for a segment of a segmented control > programatically? > > That is what would be the receiver of -setToolTip? > > Or, how does one get the view for a segment? Yes, see -[NSSegmentedCell setToolTip:forS

Set NSSegmentedControl ToolTip

2010-09-27 Thread koko
Is it possible to set a tool tip for a segment of a segmented control programatically? That is what would be the receiver of -setToolTip? Or, how does one get the view for a segment? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Menus to distinguish Numpad vs normal digit keys

2010-09-27 Thread Russ
I have different menu keys set up in my app for control-4 and control-number-pad-4, but it seems that Cocoa is not distinguishing between the two. (There are several key equivalents in the number-pad area that are used for variants on directional motions, ie left, right, up, down, etc, whereas

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Shawn Erickson
On Sun, Sep 26, 2010 at 2:32 PM, Jerry Krinock wrote: > When my app runs for a particular user it emits these to the console once in > awhile: > > *** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at > objects[0] > > However, the app does not crash for him when this happens.

Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)

2010-09-27 Thread Sean McBride
On Fri, 24 Sep 2010 14:13:11 +0200, Carles Gutierrez said: >I'm getting a strange error I cannot fix. >I have declared a QTMovie like this, using an opensource template >(openframeworks): > >// It's a Cocoa QTMovie, void*'s so it's C++ compatible >void*movie; BTW, instead of using 'void*' you

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Kyle Sluder
On Sep 26, 2010, at 2:32 PM, Jerry Krinock wrote: > > Why does it crash for me and not for him? Does the Mac OS have some kind of > system-wide exception-handling preferences that I'm not aware of? Could some > system extension do this? Plenty of places in the system quash exceptions. The m

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Ken Thomases
On Sep 26, 2010, at 7:51 PM, Jerry Krinock wrote: > On 2010 Sep 26, at 16:58, Ken Thomases wrote: > >> Have you tried actually using the method that's in his log >> (-initWithObjects:count:), instead of a different one? Or even >> +arrayWithObjects:count:? > > Yes, but to make a long story sh

[ANN] A new book by Erik M. Buck

2010-09-27 Thread Erik Buck
Of interest to Cocoa and OpenGL ES programmers: "OpenGL ES for iOS: All of the Important Parts" Addison-Wesley Professional (Developer's Library) [Paperback] Expected publication November 29, 2010. http://cocoadesignpatterns.squarespace.com/updates/ This book contains an introduction to modern g

Re: NSTimer memory management

2010-09-27 Thread slasktrattena...@gmail.com
On Sun, Sep 26, 2010 at 5:39 PM, Jeff Johnson wrote: > On Sep 23, 2010, at 6:13 PM, slasktrattena...@gmail.com wrote: > >> In this particular case, though, I might just as well get rid of the >> timer altogether and go for NSObject's >> performSelector:afterDelay:/cancelSelector: instead. Jeff's >

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Alexander Spohr
init methods are instance methods. You are trying to call a class method. there are no init methods in classes. atze Am 27.09.2010 um 02:51 schrieb Jerry Krinock: > Yes, but to make a long story short, I was stymied by the rocket science of > class clusters and abstract classes. The er