Re: Finding source of EXC_BREAKPOINT crash

2010-09-01 Thread Ben
On 31 Aug 2010, at 20:12, Wim Lewis wrote: > > On Aug 30, 2010, at 7:10 AM, Ben wrote: >> My app is built with a base SDK and deployment target of 10.5, but will only >> run on 10.6 systems. On 10.5 systems it crashes on launch with an >> EXC_BREAKPOINT and the following message: >> >> Dyld E

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Dave Keck
> descriptors are open. On OS X, you could read the contents of /dev/fd/ > to accomplish the same thing. It appears that NSTask uses the uglier > getdbtablesize() loop though. Neat, I wasn't aware of /dev/fd. Are the necessary APIs async-signal-safe so they can be used between fork()/exec()? Appar

NSUTF8StringEncoding and umlauts

2010-09-01 Thread sebi
Hello, I load an utf-8 textfile from a server with [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&err] and non ascii characters are still not right, e.g. "ü" becomes "ÃŒ". is that a problem on my end or on the server side? thanks and regards, sebastian mecklenburg_

Re: NSUTF8StringEncoding and umlauts

2010-09-01 Thread Alastair Houghton
On 1 Sep 2010, at 10:21, sebi wrote: > I load an utf-8 textfile from a server with > > [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding > error:&err] > > and non ascii characters are still not right, e.g. "ü" becomes "ÃŒ". is that > a problem on my end or on the server side

Dragging the window its goes to top of the screen.

2010-09-01 Thread kirankumar
Hi everyone, I develope one application its working fine,but when i change the system resolution to 800x600 here problem appears. The problem is when i drag my window to anywhere on the screen it goes to top of the screen. I didn't wrote any code for resolution in my app.Can anyone tell th

[iPhone] Breaking content of NSMutable array into two arrays.

2010-09-01 Thread Tharindu Madushanka
Hi, I have a NSMutableArray that holds objects and they are sorted according to an integer value, either 1 (One constant), 2 (another constant). User { NSString *name; NSInteger state; } Now i want to split the content into two arrays. I saw this method.. - (NSArray *)filteredArrayUsingPredic

Re: NSUTF8StringEncoding and umlauts

2010-09-01 Thread sebi
On 01.09.2010, at 12:25, Alastair Houghton wrote: > On 1 Sep 2010, at 10:21, sebi wrote: > >> I load an utf-8 textfile from a server with >> >> [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding >> error:&err] >> >> and non ascii characters are still not right, e.g. "ü" beco

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Scott Ribe
On Aug 31, 2010, at 11:33 PM, Dave Keck wrote: > To get around this behavior (and other NSTask bugs and shortcomings), > I chose to write my own NSTask equivalent. I've done that for other reasons; so I have a robust well-used class available, but in this case I'm trying to stick to a closer to

Re: Dragging the window its goes to top of the screen.

2010-09-01 Thread Graham Cox
On 01/09/2010, at 2:00 PM, kirankumar wrote: > I develope one application its working fine,but when i change the system > resolution to 800x600 here problem appears. > > The problem is when i drag my window to anywhere on the screen it goes to > top of the screen. > > I didn't wrote any cod

Re: [iPhone] Breaking content of NSMutable array into two arrays.

2010-09-01 Thread Wyatt Webb
On Sep 1, 2010, at 5:26 AM, Tharindu Madushanka wrote: > Hi, > > I have a NSMutableArray that holds objects and they are sorted according to > an integer value, either 1 (One constant), 2 (another constant). > > User { > NSString *name; > NSInteger state; > } > > Now i want to split the content

Dealloc'ing a serial GCD dispatch queue?

2010-09-01 Thread Mike Manzano
This is probably a stupid question, but after I dispatch_queue_create() how do I clean up the queue when I'm done with it? Thanks! Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Dealloc'ing a serial GCD dispatch queue?

2010-09-01 Thread Dave DeLong
dispatch_release(). http://developer.apple.com/mac/library/documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html#//apple_ref/c/func/dispatch_release Dave On Sep 1, 2010, at 9:54 AM, Mike Manzano wrote: > This is probably a stupid question, but after I > > dispatch_qu

Re: Dealloc'ing a serial GCD dispatch queue?

2010-09-01 Thread Mike Manzano
Ah. I saw that, but I was expecting something like dispatch_queue_release(). Thanks! Mike On Sep 1, 2010, at 8:59 AM, Dave DeLong wrote: > dispatch_release(). > > http://developer.apple.com/mac/library/documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html#//apple_re

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Michael Ash
On Wed, Sep 1, 2010 at 4:20 AM, Dave Keck wrote: >> descriptors are open. On OS X, you could read the contents of /dev/fd/ >> to accomplish the same thing. It appears that NSTask uses the uglier >> getdbtablesize() loop though. > > Neat, I wasn't aware of /dev/fd. Are the necessary APIs > async-si

Re: sharing file descriptors to an NSTask

2010-09-01 Thread Scott Ribe
FYI, named pipes are not "surprisingly slow" on OS X after all. Turns out that I had so completely saturated CPU & cache in my performance testing that adding a little bit of IPC pushed things over the edge... (I was running with some cores turned off in order to roughly simulate lower-end Macs.

Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Barry Wark
I'm getting intermittent crashes in my test suite for a GC application on OS X 10.6.4. The KERN_INVALID_ADDRESS at 0x00090028 occurs in 0 libobjc.A.dylib0x7fff82ac847b _class_shouldFinalizeOnMainThread + 4 within the Dispatch queue: Garbage Collection Work Queue

colorwell not working well in Input Methods Preferences panel.

2010-09-01 Thread Guang Han
Dear cocoa experts, I'm working on an input method, but I have some problem with the colorwell control. The problem is: the color picker panel won't be opened after clicking on the colorwell control. But it will show after I change the selected item of the combo box which is also added in the pre

Highlighting only image over button when it is clicked

2010-09-01 Thread Devarshi Kulshreshtha
Hi all, Right now when I set an image over a button and make it border-less and try to click it, it always shows a rectangular portion highlighted along with the image, which is the actual dimension of button clicked. My requirement is: I want to highlight only the image over it, not the whole re

iPAD Backspace problem

2010-09-01 Thread Paresh Thakor
Hi, While working with my one of the universal application, i come to know that on iPhone, the keyboard is working perfectly but on iPad when i do resignFirstResponder on UITextField and then again do becomeFirstResponder, backspace is not working perfectly, all modifications are being done on

Re: Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Greg Parker
On Sep 1, 2010, at 11:15 AM, Barry Wark wrote: > I'm getting intermittent crashes in my test suite for a GC application > on OS X 10.6.4. The KERN_INVALID_ADDRESS at 0x00090028 occurs > in > > 0 libobjc.A.dylib 0x7fff82ac847b > _class_shouldFinalizeOnMainThread + 4

Re: Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Sean McBride
On Wed, 1 Sep 2010 12:52:57 -0700, Greg Parker said: >It's likely that a memory smasher or use-after-free of some other object >has clobbered this object's isa. Try running with guardmalloc and >AUTO_USE_GUARDS=YES to see if those uncover a smasher somewhere. And do I recall correctly that one sh

Re: Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Barry Wark
On Wed, Sep 1, 2010 at 3:52 PM, Greg Parker wrote: > On Sep 1, 2010, at 11:15 AM, Barry Wark wrote: >> I'm getting intermittent crashes in my test suite for a GC application >> on OS X 10.6.4. The KERN_INVALID_ADDRESS at 0x00090028 occurs >> in >> >> 0   libobjc.A.dylib                   0

[MEET] CocoaHeads September Meetings

2010-09-01 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. Meetings are free and open to the public. We specialize in Cocoa, but everything Mac programming related is welcome. Australia Sydney - Thursday, September 2, 2010 18:30 Canada Ottawa/Gatineau, Ontario - Thursday, September 9, 2

iTunes 10 UI

2010-09-01 Thread Eric E. Dolecki
Top left, the traffic lights have been turned to the vertical. Is this something new or was this easy to do before? Is it just a custom implementation, or? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net _

Re: iTunes 10 UI

2010-09-01 Thread John Joyce
Custom implementation. The mini player view always had a custom implementation. On Sep 1, 2010, at 10:15 PM, Eric E. Dolecki wrote: > Top left, the traffic lights have been turned to the vertical. Is this > something new or was this easy to do before? Is it just a custom > implementation, or? >

Re: iTunes 10 UI

2010-09-01 Thread John C. Randolph
On Sep 1, 2010, at 8:15 PM, Eric E. Dolecki wrote: > Top left, the traffic lights have been turned to the vertical. Is this > something new or was this easy to do before? Is it just a custom > implementation, or? If you miniaturized the iTunes 9 window, the window controls are vertical. Not su

Re: iTunes 10 UI

2010-09-01 Thread John Joyce
On Sep 1, 2010, at 10:28 PM, John C. Randolph wrote: > > On Sep 1, 2010, at 8:15 PM, Eric E. Dolecki wrote: > >> Top left, the traffic lights have been turned to the vertical. Is this >> something new or was this easy to do before? Is it just a custom >> implementation, or? > > If you miniatur

Re: iTunes 10 UI

2010-09-01 Thread Fritz Anderson
On 1 Sep 2010, at 10:15 PM, Eric E. Dolecki wrote: > Top left, the traffic lights have been turned to the vertical. Is this > something new or was this easy to do before? Is it just a custom > implementation, or? They always had it that way on the zoomed-in version of the window. Assume anythin

[Moderator] Re: iTunes 10 UI

2010-09-01 Thread Scott Anguish
Not appropriate to the list folks. UI issues are defined by the HIG. They’re not to be discussed here. Thanks Scott On Sep 1, 2010, at 11:15 PM, Eric E. Dolecki wrote: > Top left, the traffic lights have been turned to the vertical. Is this > something new or was this easy to do before? Is i

Re: [Moderator] Re: iTunes 10 UI

2010-09-01 Thread Michael Ash
I don't mean to cause trouble, but I just want to make sure I understand this. Asking about how to implement a particular UI look is off-topic for cocoa-dev? Mike On Thu, Sep 2, 2010 at 12:16 AM, Scott Anguish wrote: > Not appropriate to the list folks. > > UI issues are defined by the HIG. They