Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Jim Puls
Yes, the documentation for that (Snow Leopard) delegate method tells you where to go: subclass NSOutlineView, implement the (Leopard) method - (NSRect)frameOfOutlineCellAtRow:(NSInteger)row and return NSZeroRect for the appropriate row(s). - jp On Nov 25, 2009, at 11:38 AM, Mario Kušnjer

Re: [iPhone] get iPhone's IP address...

2009-07-20 Thread Jim Puls
On Jul 19, 2009, at 10:50 PM, James Lin wrote: - (NSString*) getNetAddr { char iphone_ip[255]; strcpy(iphone_ip,127.0.0.1); // if everything fails NSHost *myhost =[NSHost currentHost]; //NSHost *myhost = [[NSHost alloc] init]; if (myhost) { NSLog(@myhost

Re: valueForKeyPath

2009-04-30 Thread Jim Puls
On Apr 30, 2009, at 5:29 PM, Ulai Beekam wrote: Because just adding a key to a dictionary does not make it key-value- coding compliant with respect to that key. KVC is needed for key paths like that to work. From: steve_cro...@mac.com To:

Re: More - Safari Download Security Alerts

2008-12-12 Thread Jim Puls
On Dec 12, 2008, at 4:25 AM, Mike Abdullah wrote: Does your app actually require an installer? If so, use Apple's built-in installer application; don't roll your own with AppleScript. If an installer is not really needed, just provide the application on its own inside the DMG file. Users

Re: In dealloc(): ref @property, Can I use property object = nil; vs [property object release]; ?

2008-10-08 Thread Jim Puls
On Oct 8, 2008, at 8:49 AM, Lee, Frederick wrote: I've seen examples of using [myVar release]. But doesn't setting myVar = nil does the same thing? Which is the preferred way? This is a point of more contention than you may realize. The former is, of course, equivalent to [self

Re: !foo vs foo == nil

2008-08-20 Thread Jim Puls
Just try it out in a small project... Keep in mind that Objective-C is the same as C, and C only checks for numbers within the if() statement... 0 = false, 1 or more = true... nil = 0 so, they mean the same thing... I guess my questions wasn't phrased correctly. The point was more: is

Re: How to get array of characters from NSString

2008-08-12 Thread Jim Puls
On Aug 12, 2008, at 9:13 AM, Deborah Goldsmith wrote: The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!): http://www.joelonsoftware.com/articles/Unicode.html That article is missing several concepts which are

Re: Cocoa Dev Style: Using Class versus Object Methods

2008-08-08 Thread Jim Puls
On Aug 8, 2008, at 6:10 AM, Lee, Frederick wrote: I'm becoming overtly dependent on Cocoa Objects and am waiting for the day when? an ObjC/Cocoa interface to the Address Book is available

Re: Garbage collector vs variable lifetime

2008-06-11 Thread Jim Puls
On Jun 11, 2008, at 12:15 AM, Chris Hanson wrote: This whole business about '(NSArray *) means NSArray AND any of it's subclasses' is the result of sloppy thinking and confusing 'able to' with 'as per spec'. No, you are wrong. It really is per spec. That is an intentional capability in

Re: Versioning MainMenu.nib

2008-06-04 Thread Jim Puls
On Jun 3, 2008, at 8:12 PM, Chris Outwin wrote: I have MainMenu.nib and MainMenu(Debug).nib in a Cocoa document app using Xcode 3.0. The (Debug)version has controls only used during development. I am trying to use build settings to dynamically load the MainMenu(Debug).nib when

Re: image opacity?

2008-05-11 Thread Jim Puls
On May 11, 2008, at 1:26 AM, Michael Vannorsdel wrote: On May 11, 2008, at 1:03 AM, Patrick J. Collins wrote: Does anyone happen to know how one could set the opacity of an NSImageView object? I am looking for a way to simply fade in an image on within my app's window-- but neither of the

Re: How to add number do Dock Icon like in Mail?

2008-04-08 Thread Jim Puls
On Apr 8, 2008, at 5:41 AM, [EMAIL PROTECTED] wrote: On leopard or later, you can just do: [[[NSApplication sharedApplication] dockTile] setBadgeLabel: [[NSNumber numberWithInt:42] stringValue]]; to put 42 as a badge Matt On 8 Apr 2008, at 14:06, Adam P Jenkins wrote: See [NSApplication

Re: How to make a Panel like in Mail?

2008-03-14 Thread Jim Puls
On Mar 12, 2008, at 9:45 AM, Thomas Wickl wrote: Hello, I´m new to Cocoa and I really need a hint in UI Design. How can I create this Panel like it is shown in a lot of Application like Mail? http://www.spongedpics.com/upload/WH1205339930W47d8071ae5a64-Panel.jpg And also how do they make