Re: -[NSString stringWithCString:encoding:] memory management question

2009-11-12 Thread Jens Miltner
Am 11.11.2009 um 20:58 schrieb Hank Heijink (Mailinglists): Hi all, I've run into a funny crash when using -[NSString stringWithCString:encoding:]. The code in question runs in the iPhone Simulator. I haven't found anything on the web about this, but I found out some things by experiment

Re: [Q] copy operation and authorization

2009-11-13 Thread Jens Miltner
Am 13.11.2009 um 07:53 schrieb Jerry Krinock: On 2009 Nov 12, at 14:24, Kyle Sluder wrote: No. Do not do this. Follow the pattern of BetterAuthorizationSample: http://developer.apple.com/mac/library/samplecode/BetterAuthorizationSample/listing4.html Yes, what Kyle says is true. AEWP i

Re: Make About window respond to ⌘W in UI-le ss application

2010-04-28 Thread Jens Miltner
open the MainMenu NIB, copy the MainMenu object from there and paste it into your MenuMenu NIB. Then, remove all unneeded menus & items and remember to wire up your "Close Window" item to the "performClose:" action in First Responder. -- Jens

Re: File system file renaming question...

2009-12-08 Thread Jens Miltner
Am 08.12.2009 um 17:26 schrieb Phil Hystad: This question is not specifically about Cocoa programming but I hope that some Mac OS X experts out there can give me an answer. I sent an attached photo to my daughter so that she could print it out using Costco print services. I sent it at hig

Re: NSDictionary trouble

2010-01-20 Thread Jens Miltner
Am 20.01.2010 um 11:34 schrieb Jeremy Pereira: On 19 Jan 2010, at 23:06, Jens Alfke wrote: On Jan 19, 2010, at 10:46 AM, Kirk Kerekes wrote: NSDictionary will use almost any object as a key: From the docs: "In general, a key can be any object (provided that it conforms to the NSCopying

Re: another responder chain docs bug (validateUserInterfaceItem:)

2010-02-03 Thread Jens Miltner
Am 26.01.2010 um 00:31 schrieb Andy Lee: Semi-related to my previous post, I just filed rdar://7577360 (text below). As far as I can tell, it's a bug in the docs. --Andy The "Overview" at

Re: tab view look

2010-02-03 Thread Jens Miltner
Am 26.01.2010 um 23:24 schrieb Dave DeLong: http://www.positivespinmedia.com/dev/PSMTabBarControl.html FWIW, the code seems to have moved to google-code, packed as part of . IIRC, the PSMTabBarControl implementation there has additional features like tear

Re: Versioning / increasing build number

2010-02-09 Thread Jens Miltner
Just one more thought: you could have a shell script build phase that runs whatever tool you're using to bump the build number and only run this when building the deployment configuration (e.g. by checking ${CONFIGURATION} in your script, or by activating the "Run script only when installing" c

Re: renaming executable files

2009-06-23 Thread Jens Miltner
Am 22.06.2009 um 19:22 schrieb Mr. George Warner: On Sun, 21 Jun 2009 06:47:26 -0700 (PDT), Angelo Chen > wrote: > I need to rename the executable file without renaming the project, how to do that? thanks Interesting - I believe it should

Re: Making a text cell in a table editable

2008-07-09 Thread Jens Miltner
Am 09.07.2008 um 08:09 schrieb Chris Idou: How do I programmatically make a text cell in a NSTableView to have focus and be in edit mode? I believe -[NSTableView editColumn:(NSInteger)columnIndex row: (NSInteger)rowIndex withEvent:(NSEvent *)theEvent select:(BOOL)flag] is the method you

Re: How to indent in NSOutlineView?

2008-07-09 Thread Jens Miltner
Am 09.07.2008 um 13:09 schrieb Aman Alam: I am using datasource that contain two types of object. The first object (Heading) contains a flag. If it is YES then it act as child of other main heading. The second object(item) contains value to show which is always child of main heading.

Re: Making a text cell in a table editable

2008-07-09 Thread Jens Miltner
w will be updated a bit later, so I find out this way: I call [self performSelector:@selector(doBeginEditing) withObject:nil afterDelay:0]; and in -doBeginEditing I call [grid editColumn:row:withEvent:select]. This works but I feel that the more clear way exists. Does it? On Wed, Jul 9, 2008 a

isEqual: vs isEqualTo:

2008-07-17 Thread Jens Miltner
Hi all, I'm somewhat confused regarding the difference between the isEqual: and the isEqualTo: defined in the NSObject interface. What's the difference and is there a penalty paid when using isEqualTo: instead of isEqual:? So far, I've been mostly using isEqualTo: since it was the intuitive

Re: Application frameworks for Objective-C?

2008-09-23 Thread Jens Miltner
Am 23.09.2008 um 14:45 schrieb Christian Giordano: Yep, that seems to be the way to go! FWIW - if you want asynchronous delivery of the notifications, use NSNotificationQueue instead of NSNotificationCenter... On Tue, Sep 23, 2008 at 1:40 PM, Graham Cox <[EMAIL PROTECTED]> wrote:

Re: Ephemeral Changes

2008-03-27 Thread Jens Miltner
Am 26.03.2008 um 11:26 schrieb Gerriet M. Denkmann: I also can use Edit ► Undo Set (or Paste) Font but now the document gets dirty. Very bad. Also: the complete text gets selected. So what else do I have to implement? I tried setFont: and setFont:range:, but these seem never to be called. H

Re: Ephemeral Changes

2008-03-27 Thread Jens Miltner
Am 27.03.2008 um 11:57 schrieb Gerriet M. Denkmann: On 26 Mar 2008, at 22:56, Graham Cox wrote: The undo manager will directly change the data in the text view using an invocation or target/action - it doesn't go back through changeFont: normally, which is really a "high level" method. May

Re: to include a C++ class in proj

2008-03-27 Thread Jens Miltner
Am 27.03.2008 um 14:44 schrieb Nick Rogers: are we allowed to do that in a cocoa proj. if so how do we declare the class. Is it like? class MyClass { } this is throwing error at the first line: parse error before 'MyClass' token what headers do i need to include for a C++ class? Make s

Re: How do I debug this?

2008-10-10 Thread Jens Miltner
Am 10.10.2008 um 07:13 schrieb Graham Cox: Stack trace: #0 0x92badc66 in -[NSException raise] #1 0x901c3283 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] #2 0x901a0122 in AppKitMenuEventHandler #3 0x90c79303 in DispatchEventToHandlers #4 0x90c7873d

Re: Need some advice on multithreading

2008-11-24 Thread Jens Miltner
Am 24.11.2008 um 11:08 schrieb WT: >And to answer one question you asked inline, NSNotificationCenter >delivers all notifications synchronously and immediately on the thread >on which they were sent. It is really just a way of indirectly >invoking methods, it doesn't know or care about threa

Re: Memory management puzzle

2008-11-27 Thread Jens Miltner
Am 27.11.2008 um 03:49 schrieb DKJ: I've got something this in my code, which is run several times by the app: UIView *subView = [[MyView alloc] initWithFrame:frame]; [theView addSubview:subView]; [subView release]; Later on this happens: [subView removeFrom

Re: Scheme for efficiently archiving images.

2008-11-27 Thread Jens Miltner
Am 27.11.2008 um 07:54 schrieb Graham Cox: On 27 Nov 2008, at 2:00 pm, Ken Thomases wrote: First, it seems to me like you don't want an NSImage in your model. You want the original source of the image. Either a file path or a blob of data with some meta-data (e.g. UTI) describing it an

Re: disable row highlighting NSTableView

2009-04-01 Thread Jens Miltner
Am 01.04.2009 um 15:58 schrieb Jo Phils: Hello everyone, This seems it should be easy enough but I can't quite figure it out. Normally when selecting an item in a table view it gets highlighted blue. How do you disable this highlighting? This was answered just a few days ago on this li

Re: disable row highlighting NSTableView

2009-04-02 Thread Jens Miltner
Am 02.04.2009 um 15:10 schrieb Jo Phils: Hello again, I have looked into this a bit more and it seems I still do something wrong? I make a new class file and set it to be a subclass of NSTableView and insert the following method: > If you're building for Leopard only, subclass NSTableVi

Re: ObjC 2.0 Class +encodeWithCoder:

2008-02-25 Thread Jens Miltner
Am 21.02.2008 um 23:57 schrieb Jean-Daniel Dupas: No. Every where you can provide an instance, you should be able to provide a Class to. For example, it's perfectly legal to register a Class as a notification observer (and use a Class method as target). It also perfectly legal to register a

Re: Xcode interferes with signal handler (was: Sending SIGUSR1 to a process)

2024-01-30 Thread Jens Miltner via Cocoa-dev
Xcode intercepts signals in the process being debugged (for good reason). You can ignore specific signals in Xcode (i.e. pass them through to the process being debugged) by breaking into the debugger, then enter in the Xcode console part (example for SIGUSR1): process handle SIGUSR1 -s f