CF Network memory leak? Or false positive in Leaks?

2008-08-17 Thread Lawrence Johnston
Hey everybody, I've got a situation I'm kind of puzzling over. If I run my program though leaks, I'm getting a leak at a certain point, but where it's coming from is really confusing me. I've pulled the urlRequest entirely out into a new dummy program and I'm still getting a leak here.

Re: What is Core Foundation, and other terminology/history questions.

2008-08-17 Thread Jason Coco
On Aug 18, 2008, at 01:09 , Sumner Trammell wrote: Hi, can someone explain to me the philosophy/principles behind Core Foundation? I'm just having a hard time seeing the overall relationship between Carbon, Core Foundation, and Cocoa. It's basically a C-language version of the Foundation Fram

What is Core Foundation, and other terminology/history questions.

2008-08-17 Thread Sumner Trammell
Hi, can someone explain to me the philosophy/principles behind Core Foundation? I'm just having a hard time seeing the overall relationship between Carbon, Core Foundation, and Cocoa. A few (stupid) questions I have are: + Why was Core Foundation invented? + What did developers use BEFORE Core

Re: building a command-line tool as a bundle

2008-08-17 Thread Roland King
Marcel Weiher wrote: On Aug 17, 2008, at 4:41 , Roland King wrote: I started building a Cocoa app then decided that I wanted to build myself a little command-line tool to test the classes I'm writing. Perhaps it should be a Unit test but I thought perhaps I'd learn those another day. So

Re: building a command-line tool as a bundle

2008-08-17 Thread Roland King
Michael Ash wrote: On Sun, Aug 17, 2008 at 7:41 AM, Roland King <[EMAIL PROTECTED]> wrote: I tried adding a Cocoa Bundle target, but that doesn't build an executable. I wondered about adding a second Cocoa Application target, then removing the nib and other stuff I didn't need and changing t

Re: Problem redirecting NSLog() output to stderr

2008-08-17 Thread Michael Ash
On Sun, Aug 17, 2008 at 5:10 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello List > > My app consists of a GUI process, a daemon and a number of worker processes. > Each of these processes has their stderr redirected via freopen() to the > same log file. > For the purposes of simple loggin

Re: NSUInteger hash

2008-08-17 Thread Michael Ash
On Sun, Aug 17, 2008 at 12:43 PM, Steve Wart <[EMAIL PROTECTED]> wrote: > Hi Aaron, > > That's always a good question to ask. > > I'm porting a Smalltalk/OpenGL maze application I wrote a few years ago to > Cocoa. > > The maze is initialized by creating a 2D matrix of Room objects which are > separ

Re: building a command-line tool as a bundle

2008-08-17 Thread Michael Ash
On Sun, Aug 17, 2008 at 7:41 AM, Roland King <[EMAIL PROTECTED]> wrote: > I tried adding a Cocoa Bundle target, but that doesn't build an executable. > I wondered about adding a second Cocoa Application target, then removing the > nib and other stuff I didn't need and changing the main.m file to be

Problem redirecting NSLog() output to stderr

2008-08-17 Thread [EMAIL PROTECTED]
Hello List My app consists of a GUI process, a daemon and a number of worker processes. Each of these processes has their stderr redirected via freopen() to the same log file. For the purposes of simple logging this arrangement works acceptably. There is a thread on why this should be: http

Re: setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Marc Blatt
THX Keary, but I'm thinking that this is either a bug or not the proper way to approach the 'nil' issue when dealing with an app that is 10.4+. The reason I say this is that, when I switch the formatter in IB from Mac OS X 10.4+ to Mac OS X 10.0+ in the Number Formatter Attributes, setNilVa

Re: creating files to write data to?

2008-08-17 Thread Jason Coco
Try this code... and then compare it to what you've written: /* By the way: even this code will give you errors... PLEASE check your console... because you are creating autorelease objects BEFORE you create an autorelease pool and that will ALWAYS spam you console with warnings... met

Re: NSUInteger hash

2008-08-17 Thread Kyle Sluder
On Sun, Aug 17, 2008 at 12:43 PM, Steve Wart <[EMAIL PROTECTED]> wrote: > I go through the rooms in random order, pick a wall at random, and knock it > down (also being careful to knock down the corresponding wall in any > adjacent rooms). By knocking down a wall, two rooms become merged into one.

Re: building a command-line tool as a bundle

2008-08-17 Thread Marcel Weiher
On Aug 17, 2008, at 4:41 , Roland King wrote: I started building a Cocoa app then decided that I wanted to build myself a little command-line tool to test the classes I'm writing. Perhaps it should be a Unit test but I thought perhaps I'd learn those another day. So I added a command-line

Re: Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-17 Thread Robbie Hanson
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: How to enumerate directory contents?

2008-08-17 Thread Waqar Malik
You should look at NSDirectoryEnumerator or dirent.h if you want to do it at unix level. --Waqar On Aug 17, 2008, at 10:39 AM, Nicolas Goles wrote: Hi, this is my first message here, but I have been following the list for a while. I have an application where I need the user to be presented

Re: NSUInteger hash

2008-08-17 Thread Steve Wart
Hi Aaron, That's always a good question to ask. I'm porting a Smalltalk/OpenGL maze application I wrote a few years ago to Cocoa. The maze is initialized by creating a 2D matrix of Room objects which are separated by Wall objects. Every room has an ordered collection of walls which I've put into

Re: How to enumerate directory contents?

2008-08-17 Thread Thomas Davie
On 17 Aug 2008, at 17:39, Nicolas Goles wrote: Hi, this is my first message here, but I have been following the list for a while. I have an application where I need the user to be presented with an OpenPanel, then the user will be able to select a directory. The thing is that the only thin

Re: How to enumerate directory contents?

2008-08-17 Thread Sherm Pendley
On Sun, Aug 17, 2008 at 11:39 AM, Nicolas Goles <[EMAIL PROTECTED]> wrote: > Hi, this is my first message here, but I have been following the list for a > while. > > I have an application where I need the user to be presented with an > OpenPanel, then the user will be able to select a directory. Th

How to enumerate directory contents?

2008-08-17 Thread Nicolas Goles
Hi, this is my first message here, but I have been following the list for a while. I have an application where I need the user to be presented with an OpenPanel, then the user will be able to select a directory. The thing is that the only thing that I can get is the directory path, but I need some

Re: setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Keary Suska
8/17/08 2:42 AM, also sprach [EMAIL PROTECTED]: > The table view text cell updates properly so long as an empty value > (aka 'nil') is not attempted (which results in a format error even > though setNilValueForKey: has been overridden). The NSLog statement > within setNilValueForKey: some unknown

Re: Table column header not highlighted at first

2008-08-17 Thread Graham Cox
On 17 Aug 2008, at 11:06 pm, Jason Wiggins wrote: On 16/08/2008, at 11:26 PM, Graham Cox wrote: OK, very simple: it was set in the nib. I didn't realise that presetting this in the nib was possible, so I must have set it up that way more or less by accident. OK, my understanding has im

Re: Table column header not highlighted at first

2008-08-17 Thread Jason Wiggins
On 16/08/2008, at 11:26 PM, Graham Cox wrote: OK, very simple: it was set in the nib. I didn't realise that presetting this in the nib was possible, so I must have set it up that way more or less by accident. OK, my understanding has improved... (Thanks!) Hi, I have been following thi

Re: building a command-line tool as a bundle

2008-08-17 Thread Roland King
aaghh - this is very frustrating. I opened the build settings for the commandline target and the ones for the cocoa app and synched them across line by line, just changing the name of the plist file to one I created to be different from the cocoa app and STILL the build system refuses to bu

Re: creating files to write data to?

2008-08-17 Thread René v Amerongen
Hi, I couldn't believe that you didn't get any warning so I did copy your code into xcode. Voila, I do get warnings! My suggestion is read again the comments carefully and check the documentation. It was mentioned before that [fh writedata ... needs a NSData ( or NSMutableData ) and not

building a command-line tool as a bundle

2008-08-17 Thread Roland King
This is probably a ridiculously stupid question but I'm still learning here .. I started building a Cocoa app then decided that I wanted to build myself a little command-line tool to test the classes I'm writing. Perhaps it should be a Unit test but I thought perhaps I'd learn those anoth

setNilValueForKey: not called when Number Formatter is nil

2008-08-17 Thread Marc Blatt
OK, so I have an table view text cell that has a number formatter attached in Interface Builder. In order to protect against throwing an exception, I've overridden setNilValueForKey: as follows: - (void)setNilValueForKey:(NSString *)key { NSLog(@"setNilValueForKey: has been successfully c