Re: Restarting an app -- AppleScript 'launch' in a detached shell

2008-08-04 Thread Steve Cronin
Andrew; OK for the sake of the group I will parade my ignorance so that perhaps others can learn too... First I do understand your point that using AppleScript is using an unnecessary high-level tool when a lower-level tool will do! Thanks for keeping me on-point there!! Good old-school

Re: pointers in objective-c?

2008-08-04 Thread Negm-Awad Amin
Am Sa,02.08.2008 um 22:53 schrieb Keary Suska: 8/2/08 1:09 AM, also sprach [EMAIL PROTECTED]: This is important for encapsulation. Every change of an object made through a pointer will change the object for every other user of this object, who refers using a different pointer. Person*

Re: NSSplitView Question

2008-08-04 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 07:35 schrieb Eric Lee: Sorry, I accidently did something wrong on that message. Here's the one I'm actually asking... How do you make a NSSplitView so that when you click something on one side, the other side is updated. For example, take the mail application. When

Re: Restarting an app -- AppleScript 'launch' in a detached shell

2008-08-04 Thread Kyle Sluder
On Mon, Aug 4, 2008 at 12:22 AM, Andrew Farmer [EMAIL PROTECTED] wrote: The double-fork is to fully detach the child process from the parent - note that all of the parent processes immediately die, because fork() returns nonzero. But you've still introduced a race condition. You can more

Re: How to get music list?

2008-08-04 Thread Bob Warwick
I have a problem getting the iTunes list, and then making the tableview display the iTunes list. The problem, is actually getting started. Which class should I use? I wrote some sample code a couple months ago to read in the playlist names from the iTunes XML file. It might help get

Re: Restarting an app -- AppleScript 'launch' in a detached shell

2008-08-04 Thread Kyle Sluder
On Mon, Aug 4, 2008 at 2:15 AM, Steve Cronin [EMAIL PROTECTED] wrote: I have 4 questions 1) Given that it is higher-level than necessary, I would still appreciate understanding why it doesn't work. Race conditions, waiting on the child task to complete, reliance on shell parsing semantics...

Re: CoreData fetched property: one-to-one-to-many relationship

2008-08-04 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 00:19 schrieb James Gregurich: thanks for the response. Adding the property is straight forward. The key parts that are not clear to me are: 1) how exactly do you set up a predicate to walk an extra entity to get to the target entity. Loook at the documentation of

Re: How to get music list?

2008-08-04 Thread Jean-Daniel Dupas
Le 4 août 08 à 06:06, Dave DeLong a écrit : And having experimented with this myself, AppleScript can be horrendously slow if you need to get information on more than about 50 tracks. I do not agree with this. I just try the following script and I managed to get more than 4500 tracks name

Re: How to get music list?

2008-08-04 Thread Gregory Weston
Kyle Sluder wrote: 4) Parse the iTunes Library XML files. #4 is unsupported, but also the only way to get access to the iTunes library when iTunes isn't running. The approach you take is dictated by your functional requirements. I was under the impression the primary reason the XML file

Re: How to get music list?

2008-08-04 Thread Mike Abdullah
You can also check out our iMedia Browser at http://code.google.com/p/imedia/ On 4 Aug 2008, at 01:41, Eric Lee wrote: I have a problem getting the iTunes list, and then making the tableview display the iTunes list. The problem, is actually getting started. Which class should I use?

Instance vars, local vars and speed

2008-08-04 Thread Trygve Inda
I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables declared in a method vs those declared at the object level. Obviously things like x,y loop counters are

Good luck

2008-08-04 Thread Sachin Kumar
Hey just click on the below link and register ... it will take only not more than 2 mins of your time.. take a chance...Really true.. Hey Guys, Check for free gift!! It’s true… Click on this url: http://mac.incentive-network.co.uk/?referral=16791 Regards, Sachin Kumar T.

Good luck

2008-08-04 Thread Sachin Kumar
Hey just click on the below link and register ... it will take only not more than 2 mins of your time.. take a chance...Really true.. Hey Guys, Check for free gift!! It’s true… Click on this url: http://mac.incentive-network.co.uk/?referral=21256 Regards, Sachin Kumar T.

Cancelling screensaver/sleep from an app

2008-08-04 Thread Allison Newman
Hi everyone, In my current app, I have long periods where the user may not interact with the app, but where the app display updates continuously, and the user continues to watch the app (think playing a movie, or something like that). How do I go about disabling the screensaver/sleep mode

Documentation

2008-08-04 Thread Allison Newman
Following on from my previous message, a few months back, we had a long discussion on this list about whether the documentation was of a good quality or not. This is an example where I find myself completely unable to find the documentation that I need to answer the question myself. If anyone

Re: Documentation

2008-08-04 Thread I. Savant
On Mon, Aug 4, 2008 at 8:26 AM, Allison Newman [EMAIL PROTECTED] wrote: Following on from my previous message, a few months back, we had a long discussion on this list about whether the documentation was of a good quality or not. This is an example where I find myself completely unable to

Re: How to get music list?

2008-08-04 Thread Jean-Daniel Dupas
Le 4 août 08 à 12:47, Gregory Weston a écrit : Kyle Sluder wrote: 4) Parse the iTunes Library XML files. #4 is unsupported, but also the only way to get access to the iTunes library when iTunes isn't running. The approach you take is dictated by your functional requirements. I was under

Re: Instance vars, local vars and speed

2008-08-04 Thread Jean-Daniel Dupas
Le 4 août 08 à 13:26, Trygve Inda a écrit : I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables declared in a method vs those declared at the object

Re: Cancelling screensaver/sleep from an app

2008-08-04 Thread Ron Fleckner
On 04/08/2008, at 10:23 PM, Allison Newman wrote: Hi everyone, In my current app, I have long periods where the user may not interact with the app, but where the app display updates continuously, and the user continues to watch the app (think playing a movie, or something like that).

Re: Documentation

2008-08-04 Thread Jean-Daniel Dupas
Le 4 août 08 à 14:26, Allison Newman a écrit : Following on from my previous message, a few months back, we had a long discussion on this list about whether the documentation was of a good quality or not. This is an example where I find myself completely unable to find the documentation

Re: Instance vars, local vars and speed

2008-08-04 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 14:51 schrieb Jean-Daniel Dupas: Le 4 août 08 à 13:26, Trygve Inda a écrit : I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables

Re: Documentation

2008-08-04 Thread Allison Newman
On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED] wrote: I think the long on-list discussion(s) you mentioned about the documentation kept pointing back to the feedback mechanism. This isn't really the place to complain if you expect results. Post feedback, contact DTS, et

Re: Documentation

2008-08-04 Thread Allison Newman
On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED] wrote: I think the long on-list discussion(s) you mentioned about the documentation kept pointing back to the feedback mechanism. This isn't really the place to complain if you expect results. Post feedback, contact DTS, et

Re: reloading an NSTreeController

2008-08-04 Thread Gerriet M. Denkmann
On 3 Aug 2008, at 16:53, Jonathan Dann wrote: On 3 Aug 2008, at 04:35, Gerriet M. Denkmann wrote: On 3 Aug 2008, at 05:51, Jonathan Dann wrote: On 1 Aug 2008, at 14:04, Gerriet M. Denkmann wrote: But all disclosure triangels are now closed. Is there some way to reopen them to the

CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread Nicolas Zinovieff
Hey all, I have this app that constantly updates a series of thumbnails in the background for a Cocoa view. When I have less than, say, 40 items in there, there is no problem at all. If I add three times that many elements, CGImageSourceCreateWithURL fails with error -11 Now, I know it's

Re: Instance vars, local vars and speed

2008-08-04 Thread Trygve Inda
IMHO, this is just premature optimisation. That said, there is no cost to access an ivar using the 32 bits runtime, and I don't think the cost on 64 bits runtime is important enough to bother with it. This is what I was trying to determine. Thanks. Trygve

Re: Instance vars, local vars and speed

2008-08-04 Thread David Wilson
On Mon, Aug 4, 2008 at 9:16 AM, Trygve Inda [EMAIL PROTECTED] wrote: IMHO, this is just premature optimisation. That said, there is no cost to access an ivar using the 32 bits runtime, and I don't think the cost on 64 bits runtime is important enough to bother with it. This is what I was

Re: Restarting an app -- AppleScript 'launch' in a detached shell

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 12:22 AM, Andrew Farmer [EMAIL PROTECTED] wrote: On 03 Aug 08, at 19:53, Michael Ash wrote: On Sun, Aug 3, 2008 at 5:12 PM, Andrew Farmer [EMAIL PROTECTED] wrote: On 03 Aug 08, at 14:00, Steve Cronin wrote: I am trying to simply restart my app. To my dismay, I cannot

Re: Instance vars, local vars and speed

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 7:26 AM, Trygve Inda [EMAIL PROTECTED] wrote: I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables declared in a method vs those

Dependent NSOperations (and best practices)

2008-08-04 Thread Andrew Merenbach
Hi, all, I have a situation in which I am using two subclasses of NSOperation: one is to execute an algorithm (in this case, to simulate the rolling of dice), while the other is to log the result of that action. (I'm using an operation for the logging since the logging can take some

Re: Documentation

2008-08-04 Thread I. Savant
Frankly, I think asking other Cocoa programmers about how to use the Cocoa documentation effectively, using a specific example to examine the question, is a perfectly legitimate use of the Cocoa Developer's list Sure, but it's been stated numerous times that feedback about the

Re: Documentation

2008-08-04 Thread I. Savant
On Mon, Aug 4, 2008 at 8:42 AM, I. Savant [EMAIL PROTECTED] wrote: More generally on the topic of documentation, this is the typical kind of problem where I find that the documentation fails - when you don't have a clue as to what sort of API might be responsible, the documentation is quite

Re: Dependent NSOperations (and best practices)

2008-08-04 Thread I. Savant
I have a situation in which I am using two subclasses of NSOperation: one is to execute an algorithm (in this case, to simulate the rolling of dice), while the other is to log the result of that action. (I'm using an operation for the logging since the logging can take some time due to its

Re: Documentation

2008-08-04 Thread Andy Lee
On Aug 4, 2008, at 8:26 AM, Allison Newman wrote: This is an example where I find myself completely unable to find the documentation that I need to answer the question myself. If anyone can give me a tip as to how I should have searched to get the answer myself without having to bother

Re: How to get music list?

2008-08-04 Thread Keith Duncan
I might as well pimp my own project too. http://code.google.com/sourcelist hosts an iLife like Source List NSView subclass and provides an iTunes Music Library.xml parser as an example. Keith Duncan [EMAIL PROTECTED], 33software.com ___

help linking sqlite3 wrapper

2008-08-04 Thread John Velman
I need a sqlite wrapper. After much surfing and reading, I decided to try the one: // Created by Dustin Mierau on Tue Apr 02 2002. // Copyright (c) 2002 Blackhole Media, Inc. All rights reserved. // After making changes to move the download from sqlite to sqlite3, and checking that I have

Re: Dependent NSOperations (and best practices)

2008-08-04 Thread Andrew Merenbach
On Aug 4, 2008, at 8:45 AM, I. Savant wrote: I have a situation in which I am using two subclasses of NSOperation: one is to execute an algorithm (in this case, to simulate the rolling of dice), while the other is to log the result of that action. (I'm using an operation for the logging

Re: AuthorizationExecuteWithPrivileges flag error

2008-08-04 Thread Kevin Elliott
Glancing at your code, this: AuthorizationItem right = { RIGHT, 0, NULL, 0 }; Looks completely wrong. What is RIGHT? Your flags also look wrong. Your not allowing interaction, so the system won't be allowed to authorize to create your right. Not to mention that I have no idea

Re: How to get music list?

2008-08-04 Thread Keith Duncan
I might as well pimp my own project too. The actual project link: http://code.google.com/p/sourcelist Keith Duncan [EMAIL PROTECTED], 33software.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 4:00 AM, Nicolas Zinovieff wrote: I have this app that constantly updates a series of thumbnails in the background for a Cocoa view. When I have less than, say, 40 items in there, there is no problem at all. If I add three times that many elements,

Re: [Q] is NSFileHandle's writeData method faster than the FSWriteFork?

2008-08-04 Thread James Bucanek
That probably won't gain you that much. Fractional page writes will still requires FSWRriteFork to first copy the data into its file buffer, which is where I suspect much of your current overhead is. Writing your data into a local, aligned, buffer shouldn't be too difficult to re-engineer. I

Re: help linking sqlite3 wrapper

2008-08-04 Thread Brian Stern
On Aug 4, 2008, at 11:56 AM, John Velman wrote: After making changes to move the download from sqlite to sqlite3, and checking that I have /usr/local/lib/libsqlite3.a, and putting /usr/local/lib in the library search path of the project, the source for the Demo compiles but does not link.

Bindings to display an NSArray of NSStrings as a single NSString?

2008-08-04 Thread Dustin Robert Kick
This seems like it would be common enough, to me, that it would have bindings for it. I can't find anything, and am thinking I will write an NSValueTransformer to do this (also thought there might be a value transformer for this, but no). Am I missing something? I thought that there

Message Framework and Garbage Collection

2008-08-04 Thread Ruotger Skupin
Hi, I'm trying to use the Message Framework with Garbage Collection enabled and it crashes deep down in the framework. With retain/release it works fine. Am I correct in assuming that since it is deprecated for 10.5 it can't be used with GC? Is there anything that can be used instead?

Re: Documentation

2008-08-04 Thread Allison Newman
Yup, I should have made that clearer in the initial post. Basically what I was trying to get at is what happens when keyword searches fail to turn up the info that you need. I generally try searching in much the same way as you (API search, list archives, Google - though I use non-site

Re: Irritating Problem with NSString Method and File Paths

2008-08-04 Thread Jack Carbaugh
when i refer to a file, i used: file = [[NSMutableDictionary alloc] initWithContentsOfFile:[Folder stringByAppendingPathComponent: FileName]]; Folder is set up as: Folder = [[NSString alloc] initWithString:[@path stringByExpandingTildeInPath]]; and Filename is: FileName=

Re: NSSplitView Question

2008-08-04 Thread Iain Houston
The TwoManyControllers sample code does what you want I think mostly generated from declarative as far as I can see On 4 Aug 2008, at 06:41, Graham Cox wrote: This is not any thing to do with NSSplitView as such. You're asking how to implement a master-detail interface. Try doing searching

Re: Interface Builder, tree view like Mac Mail or itunes

2008-08-04 Thread Stefan Bethke
Am 04.08.2008 um 02:11 schrieb Sandro Noel: Hello! I would like to know how to design an interface that resembles the Mac Mail application most specifically, the tree view, I cant seem to set the proper properties in interface builder to achieve the same thing... so far, i've got the

[moderator] Re: Documentation

2008-08-04 Thread Scott Anguish
On 4-Aug-08, at 9:00 AM, Allison Newman wrote: On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED] wrote: I think the long on-list discussion(s) you mentioned about the documentation kept pointing back to the feedback mechanism. This isn't really the place to complain if

Re: Message Framework and Garbage Collection

2008-08-04 Thread Bill Bumgarner
On Aug 4, 2008, at 10:35 AM, Ruotger Skupin wrote: I'm trying to use the Message Framework with Garbage Collection enabled and it crashes deep down in the framework. With retain/ release it works fine. Am I correct in assuming that since it is deprecated for 10.5 it can't be used with GC?

Re: help linking sqlite3 wrapper

2008-08-04 Thread John Velman
Since I sent the previous message, I was looking at the SDK 10.4 sqlite3.dylib, and thinking of giving it a try. I didn't know I specifically had to add it to the project. I'll let you know what happens! Thanks. John V. On Mon, Aug 04, 2008 at 01:22:37PM -0400, Brian Stern wrote: On Aug 4,

CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Steve Cronin
Folks; Here's the pretty simple tool I'm trying to create (THANK-YOU Michael Ash!!) int main (int argc, const char * argv[]) { char dummy; read(STDIN_FILENO, dummy, 1); [NSAutoreleasePool new]; NSURL *url = [NSURL fileURLWithPath:[NSString

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Folks; I open new project using the CoreFoundation - Command Line Tool template, and place the code shown above. I've tried various usages of #import Foundation/Foundation.h but can't seem to get it right so that NSURL NSAutoreleasePool

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Chris Parker
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Here's the pretty simple tool I'm trying to create (THANK-YOU Michael Ash!!) int main (int argc, const char * argv[]) { char dummy; read(STDIN_FILENO, dummy, 1); [NSAutoreleasePool new]; NSURL *url = [NSURL

Re: Dependent NSOperations (and best practices)

2008-08-04 Thread I. Savant
Wow! Although you and the other list members have my profuse apologies for missing that, I thought that my case was so unique that I didn't actually think to look for that particular aspect of NSOperation -- right-under-the-nose, eh? -- and instead just came up with the term on my own. I

Re: Dependent NSOperations (and best practices)

2008-08-04 Thread Ronny Reichmann
Hello Andrew, ... While dependent operations may produce a particular behavior, or be configurable to produce certain behaviors, what behavior would be a best practice from a UI and user-experience perspective? In my eyes you should keep it simple for the users sake. The algorithm and

Re: How to get the value of a NSNumber contained in an array while debugging ?

2008-08-04 Thread Sean McBride
On 8/3/08 3:01 PM, Kyle Sluder said: If your array is called myArray, type po myArray in the debugger, and it will print the value of all objects in the array. More specifically, it will send -description to all the objects in the array, and print the result. Useful even if you have an

Re: Dependent NSOperations (and best practices)

2008-08-04 Thread I. Savant
But splitting everything up leads to big confusion. You should think about the reason why you need to split it up and why you need to make it visible in behavior/interface. Are there any benefits at all? Nicely put. I wasn't (and still am not) sure if this is a requirement for some good

Re: Cocoa / AppleScript Folder Action

2008-08-04 Thread has
John Joyce wrote: I know I can do awkward things with AppleScript and Folder Action scripts, but is there a strictly Cocoa/Objective-C way to do something like Folder Action scripts short of a daemon? Try kqueue or FSEvents. HTH has -- Control AppleScriptable applications from Python,

Re: How to get music list?

2008-08-04 Thread has
Eric Lee wrote: I have a problem getting the iTunes list, and then making the tableview display the iTunes list. Using objc-appscript [1], here's how to list the name, artist and album of every track in the current playlist: #import ITGlue/ITGlue.h // To create glue files: osaglue -o

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 3:10 PM, David Duncan [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote: Folks; I open new project using the CoreFoundation - Command Line Tool template, and place the code shown above. I've tried various usages of #import

Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Rick Hoge
I'm working on an application that will allow users to add columns of descriptive information to an NSTableView - the available columns are determined at launch time by loading a dictionary. In my test app, I can add columns to my table no problem. Now I am trying to decide on a robust

Re: Help no longer needed! (was: help linking sqlite3 wrapper)

2008-08-04 Thread John Velman
O.K. I had messed up the original project sufficiently that it didn't work, So I started over, made a Cocoa app, added the sql stuff from blackhole (modified for sqlite3), added the libsqlite3.dylib from SDK4, and made an interface with one pushbutton, test with the original demo code (which

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 2:00 PM, Michael Ash wrote: I think you may have missed the read() at the beginning of the function, which is critical to the operation of the tool. (The purpose is to wait for the parent process to quit, then restart it.) If, however, I have instead missed a way to make the

Re: How to get music list?

2008-08-04 Thread Eric Lee
On Aug 4, 2008, at 3:51 PM, has wrote: Eric Lee wrote: I have a problem getting the iTunes list, and then making the tableview display the iTunes list. Using objc-appscript [1], here's how to list the name, artist and album of every track in the current playlist: #import

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Corbin Dunn
If you add all the columns (and remove old ones) before calling setAutosaveName:, or setAutosaveTableColumns:, then it should work out okay; it will restore all of the widths, positions, etc. corbin On Aug 4, 2008, at 2:03 PM, Rick Hoge wrote: I'm working on an application that will

backporting nibs question / Rhapsody license anyone?

2008-08-04 Thread Lars Sonchocky-Helldorf
Hi everybody, I got hold of the source code of an ancient OpenStep application for Rhapsody DR1/DR2 and Mac OS X Server (that little known version of Mac OS X that came without Carbon and predates the Public Beta). While I got the code itself to compile without relatively few tweaks and

Re: Documentation

2008-08-04 Thread Andy Lee
On Aug 4, 2008, at 1:50 PM, Allison Newman wrote: In this particular case for example, my searches failed, because I was searching on screensaver rather than sleep. This happens quite often when you are coming from a non-OSX environment, such as Windows, Linux, Java, whatever - different

Opening and Saving an RTFD

2008-08-04 Thread Mark Munz
I must be missing something obvious here and I'm hoping someone can point it out. When I try to read in an RTFD and then write it back out, I lose the attachments (images) in the file if I open it up again. I'm using a filewrapper to write it back out. The images are still in the package, but

Re: backporting nibs question / Rhapsody license anyone?

2008-08-04 Thread Jonathan Hess
I read the original question to mean that Lars was trying to get the NIB's from Rhapsody to run on Open Step. If so, I don't know of anyway to do this. It's largely the reason we use NSKeyedArchiver on Mac OS X instead of NSArchiver. Generally, we're pretty good about reading old binary

Re: NSDistributedNotifications and scripting languages

2008-08-04 Thread has
Jens Alfke wrote: I was wondering if anyone had any ideas about sending notifications to Cocoa applications using either Ruby, or PHP? I want to send notifications using a cocoa application to another cocoa application and / or send notifications from a web based application. Notifications

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Rick Hoge
Thanks for the suggestion - I tried calling setAutosaveTableColumns: after adding a column from code, but on next launch it only showed the columns that are defined in the nib with IB. Rick On 4-Aug-08, at 5:39 PM, Corbin Dunn wrote: If you add all the columns (and remove old ones)

Re: backporting nibs question / Rhapsody license anyone?

2008-08-04 Thread Lars Sonchocky-Helldorf
Am 04.08.2008 um 23:55 schrieb Bill Bumgarner: On Aug 4, 2008, at 2:46 PM, Lars Sonchocky-Helldorf wrote: - So does anyone on this list know of a way to backport nibs to an earlier version (besides recreating all the nibs from scratch)? Your problem statement doesn't make sense. The NIBs

Get keystrokes without subclassing NSWindow or NSView

2008-08-04 Thread Mike
I have a simple Cocoa app with one app controller that controls everything. Inside my controller class I have an NSWindow, which is my main window, and a WebView, which in IB, resides in the window. In my app's controller class I want to be able to: 1) Intercept, inspect, and then forward

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread Nicolas Zinovieff
On 04 Aug 2008, at 18:54, David Duncan wrote: How is CGImageSourceCreateWithURL failing with any error when its return value is a CGImageSourceRef and not an OSStatus? Well, it returns NULL, and prints in the console that it failed with error -11... And that takes a very long time to

Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread David Duncan
On Aug 4, 2008, at 3:58 PM, Nicolas Zinovieff wrote: On 04 Aug 2008, at 18:54, David Duncan wrote: How is CGImageSourceCreateWithURL failing with any error when its return value is a CGImageSourceRef and not an OSStatus? Well, it returns NULL, and prints in the console that it failed with

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Corbin Dunn
Are you calling setAutosaveName: yourself? Set it to nil in the nib. Then, call it yourself. Before you call it, print out all the table columns to see what they are. Then, load your tablecolumns that you want (add new ones). Then call setAutosaveName:something. Change the width of a

guidelines/tutorial for implementing custom controls

2008-08-04 Thread Rua Haszard Morris
Can anybody point me to some good tutorials/guides for implementing custom controls? I've been reading the Cocoa Event Handling Guide, The reference and accompanying conceptual guides for NSControl, NSCell, NSActionCell and NSView, but I'm more confused than when I started. If anyone

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Rick Hoge
Hmmm. Does not seem to be doing it. I set autoSaveFileName to nil in the nib file, then do the following in my code: 1) add the new table columns (addTableColumn: etc.) 2) call setAutosaveName:@someFile , call setAutosaveTableColumns:YES 3) manually change width of table column in UI

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Corbin Dunn
On Aug 4, 2008, at 4:32 PM, Rick Hoge wrote: Hmmm. Does not seem to be doing it. Unfortunately, I'm out of ideas; these were mainly off the top of my head. Without seeing your specific source code, I can't offer any more suggestions -- it is quite possible something else is wrong (ie:

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Rick Hoge
Hmmm. Does not seem to be doing it. Unfortunately, I'm out of ideas; these were mainly off the top of my head. Without seeing your specific source code, I can't offer any more suggestions -- it is quite possible something else is wrong (ie: the identifier isn't set). You probably want

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Corbin Dunn
Also, let me step back for a moment and recommend another approach. Ideally, if you know all possible permutations of the columns that the user could ever want, then just add them all at design time in the nib, and hide (setHidden:YES) the ones you initially want hidden. Then, add a pop on

Re: Automatic population of NSTableView with custom columns at launch time

2008-08-04 Thread Rick Hoge
Also, let me step back for a moment and recommend another approach. Ideally, if you know all possible permutations of the columns that the user could ever want, then just add them all at design time in the nib, and hide (setHidden:YES) the ones you initially want hidden. Then, add a pop

Re: CoreFoundation Command Line Tool - an easy beginner question

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 5:19 PM, David Duncan [EMAIL PROTECTED] wrote: On Aug 4, 2008, at 2:00 PM, Michael Ash wrote: I think you may have missed the read() at the beginning of the function, which is critical to the operation of the tool. (The purpose is to wait for the parent process to quit,

Re: guidelines/tutorial for implementing custom controls

2008-08-04 Thread Erik Buck
Can anybody point me to some good tutorials/guides for implementing custom controls? Do you have some objection to the examples at developer.apple.com ? http://developer.apple.com/samplecode/Clock_Control/index.html http://developer.apple.com/samplecode/TrackBall/

Re: guidelines/tutorial for implementing custom controls

2008-08-04 Thread Rua Haszard Morris
Can anybody point me to some good tutorials/guides for implementing custom controls? Do you have some objection to the examples at developer.apple.com ? http://developer.apple.com/samplecode/Clock_Control/index.html http://developer.apple.com/samplecode/TrackBall/

Re: Opening and Saving an RTFD

2008-08-04 Thread chaitanya pandit
Hi, I'm not sure what exactly you are trying to do but i believe you need to create a NSTextAttachment from the file wrapper and then generate an attributed string out of it. NSFileWrapper* filewrapper = [[NSFileWrapper alloc] initWithPath:path]; NSTextAttachment *attachment =

Re: backporting nibs question / Rhapsody license anyone?

2008-08-04 Thread Bill Bumgarner
On Aug 4, 2008, at 3:41 PM, Lars Sonchocky-Helldorf wrote: Am 04.08.2008 um 23:55 schrieb Bill Bumgarner: On Aug 4, 2008, at 2:46 PM, Lars Sonchocky-Helldorf wrote: - So does anyone on this list know of a way to backport nibs to an earlier version (besides recreating all the nibs from

Re: Properties and memory management

2008-08-04 Thread Jonathan Hess
Hey Mike - The implementation of the property will manage the retaining and the releasing. You only need to worry about sending retain and release messages manually if you access the instance variable directly (not through a property). The only place you would typically need to do that

[Moderator] - List Guidelines and iPhone SDK NDA status

2008-08-04 Thread CocoaDev Admins
Moderation -- Due to circumstances, newly subscribed users are currently moderated. Once a message or two has been posted and approved, the moderation is lifted. Hopefully this will be a temporary issue. On August 5,6, and 7 postings that require more than simple approval may be