Re: CGImageSourceCreateFromURL failed with error -11

2008-08-04 Thread Nicolas Zinovieff
David, the images are GIFs, roughly 40KB each, 200x100 (or 100x200). Nothing fancy. On 05 Aug 2008, at 01:05, David Duncan wrote: What types of images are you trying to load? -- Zino ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

NSDocumentController openDocumentWithContentsOfURL

2008-08-04 Thread Mark Munz
Under 10.5, I'm trying to switch over to using UTI's but am seeing some weird results: Given a pathName: if I call NSWorkspaces' typeOfFile:pathName error:&error, it returns the proper type (com.apple.rtfd) for an RTFD document. But when I then create an NSURL of the path and pass that URL to NSD

File's Owner problems

2008-08-04 Thread Chris Idou
I've got a class, let's call it Foo, that loads a NIB called "Bar". In IB, the File's owner of Bar is set to class Foo. When Foo loads Bar, passing self as the file's owner, Foo.awakeFromNib gets called during the nib loading process. Is that meant to happen? It doesn't make sense to me.

Colour of Symlink

2008-08-04 Thread Gerriet M. Denkmann
I want to get the colour of a symlink (NOT the colour of the thing the symlinks points at). Is there a Cocoa way to get this? Currently I am using FSPathMakeRef (or CFURLGetFSRef) to get an FSRef, and then FSGetCatalogInfo to get the colour. But both FSPathMakeRef and CFURLGetFSRef seem to

Re: Opening and Saving an RTFD [Solved]

2008-08-04 Thread Mark Munz
It turns out that my code was working correctly. The bug was in another part of the app. The problem actually was in use of NSDirectoryEnumerator (via enumeratorAtPath) which was traversing into packages. So the code found the RTF file inside the package, which is read in and wrote out, stripping

[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 d

[SOLVED[ Re: Properties and memory management

2008-08-04 Thread Mike Manzano
Thanks! For some reason I was finding it extremely hard to find the answer in the docs. Mike On Aug 4, 2008, at 8:55 PM, Jonathan Hess wrote: Hey Mike - The implementation of the property will manage the retaining and the releasing. You only need to worry about sending retain and release

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 wo

Properties and memory management

2008-08-04 Thread Mike Manzano
Hi, Sorry about this cross-post, but the obj-c language list seems sort of dead. If I have a property: @property( retain ) NSString *blah ; and in my code I assign it: myObj.blah = @"woot!" ; and then I want to reassign it, do I have to release it? [myObj.blah release] ; myObj.blah = @"n

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 scratc

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 = [[[NSTextAttac

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/ http://developer.apple.com/samp

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/ http://developer.apple.com/samp

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

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 o

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
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
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: th

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 ju

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 coul

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:. Change the width of a column in your

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: 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 retur

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 any

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

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) befor

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 are

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 for

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 they

Re: "backporting" nibs question / Rhapsody license anyone?

2008-08-04 Thread 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 don't need to be backported. The problem is th

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 - differen

"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 a

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 allow

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 "ITGlue/ITGlu

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: 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 ju

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 a

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 but

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: 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, Ruby

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 g

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

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 th

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.

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 fileURLWit

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 but can't seem to get it right so that NSURL & NSAutoreleasePool are defined... I beli

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 stringWithUTF8String:argv

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

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? I

[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

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 spli

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 searchin

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= [[NSMutabl

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 lim

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? Ru

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 shou

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.

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: 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, CGImageSourceCreateWithUR

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 moderat

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 wh

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 sin

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: 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 ___ Cocoa

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 this

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 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

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 documentat

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 time

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 >

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.

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

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 _

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: 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 previou

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

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

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 dec

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 t

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). H

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 lev

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 t

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 t

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

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 wh

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.

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. ___

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 loca

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?

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 exis

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 i

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

2008-08-04 Thread Andrew Farmer
On 03 Aug 08, at 23:15, Steve Cronin wrote: 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 o

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 NS