Re: ld: duplicate symbol

2008-10-01 Thread Claus Atzenbeck
On Tue, 30 Sep 2008, Bill Bumgarner wrote: Solved which problem? Making your code compile or making it work? In this particular case, it would compile and work. However, I see the problem. I declared the variable as extern, as suggested by Nick. This makes more sense. Thanks, also to

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-01 Thread Alastair Houghton
On 1 Oct 2008, at 00:43, Michael Robinson wrote: On 1/10/2008, at 3:23 AM, Alastair Houghton wrote: If you're rendering this in advance using Cocoa, why not use the - appendBezierPathWithArcFromPoint:toPoint:radius: method on NSBezierPath to construct a rounded path? The code that

Remove Duplicates in a NSArray

2008-10-01 Thread Rashmi Vyshnavi
Hi All, Is there a way to remove dictionary item containing same values for a key from a array of dictionaries? E.g. NSDictionary *dict1 = [NSDictionary dictionaryWithObjectsAndKeys:@ testVal,@testKey,,nil]; NSDictionary *dict2 = [NSDictionary dictionaryWithObjectsAndKeys:@

Obtaining image from a scanner using ImageKit?

2008-10-01 Thread Devraj Mukherjee
Hi all, I am looking at adding a scan feature in my application to ease the digitzation process of documents for my client. Does ImageKit allow this? Can anyone please point me to an example? The obtained images dont have to modified, they just have to scanned and stored. Thanks. -- I never

Threads + Garbage Collection = Crash?

2008-10-01 Thread Oleg Krupnov
In my application, I create a (single) background thread, for creating thumbnail images. I use NSRunLoop and - [NSObject performSelector:onThread:withObject:waitUntilDone:] to communicate between the main and the background threads. I am experiencing weird random crashes with the following log:

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-01 Thread Michael Robinson
Ah, thank you for that. This will allow me to scrap much of my HTML generation code. The images spat out seem to be quite small, which is a real bonus. I need to use CGShading, because a lot of people will be running this on 10.4 (I assume they won't be able to use the other way)?

Re: Obtaining image from a scanner using ImageKit?

2008-10-01 Thread Graham Cox
On 1 Oct 2008, at 10:30 pm, Devraj Mukherjee wrote: Hi all, I am looking at adding a scan feature in my application to ease the digitzation process of documents for my client. Does ImageKit allow this? Can anyone please point me to an example? See:

program memory consumption?

2008-10-01 Thread Pierre Guilluy
Hello, Are there functions in Cocoa APIs which would give me how much memory my program's using? (at least virtual memory as listed in Activity Monitor) Thanks in advance. Pierre ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Core Data: Copying and pasting chained entities (Renaud C?roce)

2008-10-01 Thread Daniel Child
I'm not sure if I understand your question, but if FillStyle and FillColor are entities, why not simply create corresponding managed objects and set their values, making sure that all of the relations (between color and style, and between style and figure) are established. They will then

Re: program memory consumption?

2008-10-01 Thread Nick Zitzmann
On Oct 1, 2008, at 8:42 AM, Pierre Guilluy wrote: Are there functions in Cocoa APIs which would give me how much memory my program's using? (at least virtual memory as listed in Activity Monitor) What exactly are you trying to accomplish that requires you to do this? Nick Zitzmann

Re: program memory consumption?

2008-10-01 Thread Pierre Guilluy
Nick, Our real-time video mixing applications load hundreds of movie files, in order to get very responsive when a movie is triggered. The problem is, using today's high resolution movies, the process's memory quickly reaches the maximum allowed for a 32bits process, so we'd like to

Thank you for listening Apple!

2008-10-01 Thread Alexander Griekspoor
Awesome! Any official policy/point-of-view with regards to this list? http://developer.apple.com/iphone/program/ -- ** Alexander Griekspoor PhD ** mekentosj.com

Apple Drops iPhone NDA

2008-10-01 Thread Gordon Hughes
http://developer.apple.com/iphone/program/ Does this mean we can now ask questions relating to iPhone development on this list? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Thank you for listening Apple!

2008-10-01 Thread Roland King
I would suggest we have to wait for the actual agreement and for the list maintainer to get some kind of guidance from apple. It looks like very positive news but .. currently we're still bound I think. On Oct 1, 2008, at 11:22 PM, Alexander Griekspoor wrote: Awesome! Any official

NDA lifted?

2008-10-01 Thread Hasani Hunter
Now that the NDA appears to lifting soon, will this list be the correct one for iPhone dev or will there be another list created just for iPhone? http://developer.apple.com/iphone/program/ Hasani ___ Cocoa-dev mailing list

Re: Thank you for listening Apple!

2008-10-01 Thread Eric Gorr
On Oct 1, 2008, at 11:22 AM, Alexander Griekspoor wrote: Awesome! Any official policy/point-of-view with regards to this list? http://developer.apple.com/iphone/program/ This is cool. Hopefully, they will open up an iphone-dev mailing list very soon.

Re: program memory consumption?

2008-10-01 Thread Nick Zitzmann
On Oct 1, 2008, at 9:15 AM, Pierre Guilluy wrote: Our real-time video mixing applications load hundreds of movie files, in order to get very responsive when a movie is triggered. The problem is, using today's high resolution movies, the process's memory quickly reaches the maximum

XML XPath question

2008-10-01 Thread Sandro Noel
Greetings. I am trying to retrieve some specific data from a XML document. data department employe id=1 nameabcd/name /employe employe id=2 nameefrh/name /employe

Re: Thank you for listening Apple!

2008-10-01 Thread Devon Ferns
Wow, hell froze over Roland King wrote: I would suggest we have to wait for the actual agreement and for the list maintainer to get some kind of guidance from apple. It looks like very positive news but .. currently we're still bound I think. On Oct 1, 2008, at 11:22 PM, Alexander

iPhone NDA dropped

2008-10-01 Thread Marc Stibane
http://developer.apple.com/iphone/program/ Will there be an iPhone list or can we post questions here? -- In a world without walls and fences, who needs windows and gates? smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev

YAY!!

2008-10-01 Thread John Zorko
FINALLY! Regards, John, quite happy that the NDA is gone -- oh so gone :-) Falling You - exploring the beauty of voice and sound http://www.fallingyou.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Thank you for listening Apple!

2008-10-01 Thread Nathan
Yay Apple! Sent from my iPod On Oct 1, 2008, at 11:43 AM, Devon Ferns [EMAIL PROTECTED] wrote: Wow, hell froze over Roland King wrote: I would suggest we have to wait for the actual agreement and for the list maintainer to get some kind of guidance from apple. It looks like very

Re: Threads + Garbage Collection = Crash?

2008-10-01 Thread Ashley Clark
In my application, I create a (single) background thread, for creating thumbnail images. I use NSRunLoop and - [NSObject performSelector:onThread:withObject:waitUntilDone:] to communicate between the main and the background threads. I am experiencing weird random crashes with the following

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-01 Thread David Duncan
On Oct 1, 2008, at 5:46 AM, Michael Robinson wrote: Unsurprisingly, I need my hand held again. 1. how do I initialize a CGShading object, with my two colours (left right/top bottom) See the Quartz 2D Shadings sample at http://developer.apple.com/samplecode/Quartz2DShadings/index.html The

Re: Thank you for listening Apple!

2008-10-01 Thread Aaron Tait
Free at last! Free at last! Thank God almighty, we are free at last! -Aaron On 1-Oct-08, at 9:04 AM, Nathan wrote: Yay Apple! Sent from my iPod On Oct 1, 2008, at 11:43 AM, Devon Ferns [EMAIL PROTECTED] wrote: Wow, hell froze over Roland King wrote: I would suggest we have to wait

[Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread CocoaDev Admins
For those of you who have seen http://developer.apple.com/iphone/program We have decided to drop the non-disclosure agreement (NDA) for released iPhone software. We put the NDA in place because the iPhone OS includes many Apple inventions and innovations that we would like to protect, so

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread James
Quick question, what do they mean by Released and Unreleased software (just want the terminology correct). Thanks, james On Oct 1, 2008, at 12:44 PM, CocoaDev Admins wrote: For those of you who have seen http://developer.apple.com/iphone/program We have decided to drop the

command line tool: processing files dropped on it?

2008-10-01 Thread Barrie Green
hi all, Hopefully someone can point me in the right direction. I have a command line tool, written in c++, that I use on my windows machine, which allows me to drop files onto it. Windows ensures the tool receives the paths of the files dropped through the argc/argv arguments in main. I have

Re: Remove Duplicates in a NSArray

2008-10-01 Thread Andre Masse
Hi, NSArray and NSDictionary are one shot objects. Once you've created them, they're read-only. You need to use the mutable version for adding/removing objects inside a collection. See NSMutableDictionary, NSMutableArray etc. Andre Masse On Oct 1, 2008, at 07:29, Rashmi Vyshnavi

[Moderator] Re: Apple Drops iPhone NDA

2008-10-01 Thread Scott Anguish
It is unclear to me what the exact lines are of what can and can't be talked about. I'm finding out about this at the same time you are. I will make an announcement when the new list rules are clarified. On 1-Oct-08, at 11:24 AM, Gordon Hughes wrote:

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread CocoaDev Admins
That is one of the things I'm going to be clarifying. for now, just wait to talk about anything on the list. On 1-Oct-08, at 12:47 PM, James wrote: Quick question, what do they mean by Released and Unreleased software (just want the terminology correct). Thanks, james On Oct 1, 2008, at

Re: XML XPath question

2008-10-01 Thread Chris Patterson
I am trying to retrieve some specific data from a XML document. data department employe id=1 nameabcd/name /employe employe id=2 nameefrh/name /employe

Re: command line tool: processing files dropped on it?

2008-10-01 Thread Chris Hanson
On Oct 1, 2008, at 3:46 AM, Barrie Green wrote: I have a command line tool, written in c++, that I use on my windows machine, which allows me to drop files onto it. Windows ensures the tool receives the paths of the files dropped through the argc/argv arguments in main. I have ported my tool

Simon Raisin wants to chat

2008-10-01 Thread Simon Raisin
--- Simon Raisin wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-4cf3a124c9-b5625013e4-863fde0ab01abf2e You'll need to

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread CocoaDev Admins
As I said, I'll post clarification information as soon as I can get it. In the meantime, rejoice, but please don't slam 8000 users with yes! messages. Scott [moderator] On 1-Oct-08, at 12:47 PM, James wrote: Quick question, what do they mean by Released and Unreleased software (just

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread Brian Stern
On Oct 1, 2008, at 12:47 PM, James wrote: Quick question, what do they mean by Released and Unreleased software (just want the terminology correct). While I'm not a lawyer I read those sentences several times also. What I believe it means is that released versions of the iPhone OS are

Re: XML XPath question

2008-10-01 Thread Sandro Noel
Chris, thank you that worked just fine, to bad the piece of information i read did not mention that... :( Sandro. On 1-Oct-08, at 12:47 PM, Chris Patterson wrote: Your XPath is almost correct, as far as I can tell. All you need to do is insert an @ character before the id attribute

Re: command line tool: processing files dropped on it?

2008-10-01 Thread Sherm Pendley
On Wed, Oct 1, 2008 at 6:46 AM, Barrie Green [EMAIL PROTECTED] wrote: hi all, Hopefully someone can point me in the right direction. I have a command line tool, written in c++, that I use on my windows machine, which allows me to drop files onto it. Windows ensures the tool receives the

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread dreamcat7
Hmmm, No iPhone - specific functionality to be discussed yet. But obviously one important question to asking: How to partition the lists? I hope that our existing CocoaDev moderater(s) will be given fully the responsibility for such task and enough leeway to make their own decision about

Play Playlist in iTunes

2008-10-01 Thread Mr. Gecko
Hello I am needing to know how to play a playlist in iTunes using AppleEvents. I am able to get the Playlist ID and the Playlist Persistent ID from the iTunes Database. I just need to know how to tell iTunes to play it. Thanks for help/tips, Mr. Gecko

Re: command line tool: processing files dropped on it?

2008-10-01 Thread I. Savant
On Wed, Oct 1, 2008 at 6:46 AM, Barrie Green [EMAIL PROTECTED] wrote: But I'm hampered by the fact that finder won't let me drag n drop files onto my tool! I can't even use it from the Open With Context menu in finder. I'm sure i've seen other (OS X) tools process files like this, although

Re: command line tool: processing files dropped on it?

2008-10-01 Thread Herb Petschauer
2008/10/1 Sherm Pendley [EMAIL PROTECTED]: On Wed, Oct 1, 2008 at 6:46 AM, Barrie Green [EMAIL PROTECTED] wrote: hi all, Hopefully someone can point me in the right direction. I have a command line tool, written in c++, that I use on my windows machine, which allows me to drop files onto

Re: Play Playlist in iTunes

2008-10-01 Thread Randall Meadows
On Oct 1, 2008, at 11:51 AM, Mr. Gecko wrote: Hello I am needing to know how to play a playlist in iTunes using AppleEvents. I am able to get the Playlist ID and the Playlist Persistent ID from the iTunes Database. I just need to know how to tell iTunes to play it. Did you look at the

Re: Play Playlist in iTunes

2008-10-01 Thread Loren Ryter
You can't play a playlist. You have to play a track on it -- either the first track or a random track. On 10/1/08 1:51 PM, Mr. Gecko [EMAIL PROTECTED] wrote: Hello I am needing to know how to play a playlist in iTunes using AppleEvents. I am able to get the Playlist ID and the Playlist

Re: Play Playlist in iTunes

2008-10-01 Thread Uli Kusterer
On 01.10.2008, at 19:51, Mr. Gecko wrote: Hello I am needing to know how to play a playlist in iTunes using AppleEvents. I am able to get the Playlist ID and the Playlist Persistent ID from the iTunes Database. I just need to know how to tell iTunes to play it. 'Scripting Bridge', or

iPhone programming class, Silicon Valley

2008-10-01 Thread mmalc crawford
The West Valley College course, CIS 37.6 63169 Cocoa Application Programming, which starts this evening (October 1*), provides a grounding in the tools, techniques, and design patterns used in all Cocoa programming, but uses Cocoa Touch as the main teaching vehicle.

Re: Play Playlist in iTunes

2008-10-01 Thread Randall Meadows
On Oct 1, 2008, at 12:07 PM, Loren Ryter wrote: You can't play a playlist. You have to play a track on it -- either the first track or a random track. Sure you can. See my response to the OP; that AppleScript certainly started playing the tracks in the playlist with specifying a specific

Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today

2008-10-01 Thread Nathan
I think both should be in one mailing list, for simplicity, the fact that both topics overlap a lot, and because the more, the more likely to get an answer. Nate On Oct 1, 2008, at 1:38 PM, dreamcat7 [EMAIL PROTECTED] wrote: Hmmm, No iPhone - specific functionality to be discussed yet.

Cocoa Programming iPing exercise

2008-10-01 Thread Shawn Protsman
I finally decided to take a dive into Objective-C with Xcode. I'm looking at the iPing example in Hillegass' latest book, Cocoa Programming. iPing works fine as coded in the book. Next, I decided to replace `ping` with a binary I wrote called `keyreq`. It is simply a C program and resides

Re: Play Playlist in iTunes

2008-10-01 Thread Robert Marini
You may be able to do what you want with http://www.liquidx.net/eyetunes/ -rob. On Oct 1, 2008, at 2:10 PM, Uli Kusterer wrote: On 01.10.2008, at 19:51, Mr. Gecko wrote: Hello I am needing to know how to play a playlist in iTunes using AppleEvents. I am able to get the Playlist ID and the

Re: Play Playlist in iTunes

2008-10-01 Thread Mr. Gecko
Well which ever one is faster, I know for applescript to work it would have to compile the code before it runs so that takes a bit of time. Mr. Gecko On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote: On 01.10.2008, at 19:51, Mr. Gecko wrote: Hello I am needing to know how to play a playlist

Re: Play Playlist in iTunes

2008-10-01 Thread Mr. Gecko
SBApplication sounds easier than using EyeTunes, maybe I would make a switch. I'll have to play with it to see what I can do. On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote: On 01.10.2008, at 19:51, Mr. Gecko wrote: Hello I am needing to know how to play a playlist in iTunes using

NSString's mutableCopy creating a leak?

2008-10-01 Thread Christopher J Kemsley
I'm writing a program that, in one table view, has the following code: id receivedName = [theDatabase itemAtIndex:editedRow] ; editedRowName = [receivedName mutableCopy] ; [receivedName release]; where editedRowName is defined as an NSMutableString. [theDatabase itemAtIndex:editedRow]

Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Jerry Krinock
On 2008 Sep, 30, at 16:47, Charles Srstka wrote: On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote: Also, it seems to not find helper applications which are inside other applications' packages. Is there any reason why you couldn't just search for the main application which contains the

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Nick Zitzmann
On Oct 1, 2008, at 1:34 PM, Christopher J Kemsley wrote: Does anybody know where this leak is coming from? You are responsible for releasing copies of objects if you don't have GC turned on. Nick Zitzmann http://www.chronosnet.com/ ___

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Sherm Pendley
On Wed, Oct 1, 2008 at 3:34 PM, Christopher J Kemsley [EMAIL PROTECTED]wrote: I'm writing a program that, in one table view, has the following code: id receivedName = [theDatabase itemAtIndex:editedRow] ; editedRowName = [receivedName mutableCopy] ; [receivedName release]; where

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread I. Savant
On Wed, Oct 1, 2008 at 3:34 PM, Christopher J Kemsley [EMAIL PROTECTED] wrote: Does anybody know where this leak is coming from? Yep. Lack of adherence to the 'Cocoa memory management contract':

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Christopher J Kemsley
Instead of replying to everybody individually, let me say this: I neglected to mention in my original post that, when this object is deallocated, it explicitly deallocated the editedRowName before calling a [super dealloc], so the thing should be deallocated.

-[NSScanner scanUpToString:stopString:NULL] - 10.3.9 Crash, due Xcode 3.1?

2008-10-01 Thread Jerry Krinock
After updating from Xcode 3.0 to 3.1.1, my project crashes repeatably in 10.3.9, while loading the (old) Sparkle 1.1 framework, and in a couple other places. (Yes, I'm just about to cut my two or remaining Panther users loose and send them an old version. But I always try and fix these

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Sherm Pendley
On Wed, Oct 1, 2008 at 3:56 PM, I. Savant [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 3:34 PM, Christopher J Kemsley [EMAIL PROTECTED] wrote: Does anybody know where this leak is coming from? Yep. Lack of adherence to the 'Cocoa memory management contract':

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread I. Savant
On Wed, Oct 1, 2008 at 4:01 PM, Sherm Pendley [EMAIL PROTECTED] wrote: The NDA is/was irrelevant to this anyway - it's standard Cocoa, nothing iPhone-specific. Agreed, but the intention was to avoid grief from those who didn't know the NDA was lifted, though the moderator wants otherwise.

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Sherm Pendley
On Wed, Oct 1, 2008 at 3:57 PM, Christopher J Kemsley [EMAIL PROTECTED]wrote: Instead of replying to everybody individually, let me say this: I neglected to mention in my original post that, when this object is deallocated, it explicitly deallocated the editedRowName Are you saying that you

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Randall Meadows
[Oops, I realized I didn't Reply-All and include the list in my first answer.] On Oct 1, 2008, at 1:45 PM, Christopher J Kemsley wrote: I do better than that - on the dealloc call, my code explicitly deallocates it. Meaning, I assume, in this containing class's -dealloc, you call

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread j o a r
On Oct 1, 2008, at 12:57 PM, Christopher J Kemsley wrote: I neglected to mention in my original post that, when this object is deallocated, it explicitly deallocated the editedRowName before calling a [super dealloc], so the thing should be deallocated. By that I hope you don't mean that

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Nick Zitzmann
On Oct 1, 2008, at 1:57 PM, Christopher J Kemsley wrote: I neglected to mention in my original post that, when this object is deallocated, it explicitly deallocated the editedRowName before calling a [super dealloc], so the thing should be deallocated. Are you sure the parent object is

Print report using WebView

2008-10-01 Thread Vitaly Ovchinnikov
Hello, I need to print reports with various styles. The only reasonable way for me is to generate HTML and use WebView for rendering and print. I create WebView, generate HTML string and pass it to WebView. Then I create NSPrintOperation on it. All works fine, but it prints one empty page at the

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Christopher J Kemsley
A bit more information about what's going on: The object is a subclass of UIViewController. When I click on something in a UITableView, it allocates this object and initializes it to use as an editor. Example: You're looking at a list of stuff, and you click on one of the object to bring

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread I. Savant
On Wed, Oct 1, 2008 at 4:16 PM, Christopher J Kemsley [EMAIL PROTECTED] wrote: I was not aware that I shouldn't explicitly call a dealloc... Why not? Replacing it with a release in the object made that leak go away, but I still don't understand why I can't dealloc it. The link I sent you

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Charles Steinman
--- On Wed, 10/1/08, Christopher J Kemsley [EMAIL PROTECTED] wrote: I was not aware that I shouldn't explicitly call a dealloc... Why not? That isn't how memory management in Cocoa works. From TFM entry on dealloc: You never send a dealloc message directly. Instead, an object’s dealloc

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread j o a r
On Oct 1, 2008, at 1:16 PM, Christopher J Kemsley wrote: I was not aware that I shouldn't explicitly call a dealloc... Why not? Replacing it with a release in the object made that leak go away, but I still don't understand why I can't dealloc it. I would suggest that you read the memory

Re: Print report using WebView

2008-10-01 Thread Sherm Pendley
On Wed, Oct 1, 2008 at 4:15 PM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: I need to print reports with various styles. The only reasonable way for me is to generate HTML and use WebView for rendering and print. I create WebView, generate HTML string and pass it to WebView. Then I create

Re: Remove Duplicates in a NSArray

2008-10-01 Thread Ken Thomases
On Oct 1, 2008, at 6:29 AM, Rashmi Vyshnavi wrote: Is there a way to remove dictionary item containing same values for a key from a array of dictionaries? E.g. NSDictionary *dict1 = [NSDictionary dictionaryWithObjectsAndKeys:@ testVal,@testKey,,nil]; NSDictionary *dict2 =

Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Jerry Krinock
On 2008 Sep, 30, at 12:50, Michael Ash wrote: Of course if [your helper] isn't registered to open documents then this doesn't work so great. Yes, that's the problem. It's a background kind of a guy. It doesn't open documents of any kind. As for multiple installations, I don't see any

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Andy Lee
On Oct 1, 2008, at 4:16 PM, Christopher J Kemsley wrote: I was not aware that I shouldn't explicitly call a dealloc... The documentation for -dealloc says so in so many words. Why not? Replacing it with a release in the object made that leak go away, but I still don't understand why I can't

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Corbin Dunn
On Oct 1, 2008, at 12:34 PM, Christopher J Kemsley wrote: I'm writing a program that, in one table view, has the following code: id receivedName = [theDatabase itemAtIndex:editedRow] ; editedRowName = [receivedName mutableCopy] ; [receivedName release]; where editedRowName is defined as an

Can I put UTIs in NSFilesPromisePboardType promise drag array?

2008-10-01 Thread Nathan Vander Wilt
I am initiating a promise drag by adding an array of strings to my pasteboard using for the NSFilesPromisePboardType. The documentation states that the types can be specified as filename extensions or as HFS file types encoded [as strings]. Is there any reason to not build an array of UTIs

Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Charles Srstka
On Oct 1, 2008, at 2:47 PM, Jerry Krinock wrote: On 2008 Sep, 30, at 16:47, Charles Srstka wrote: On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote: Also, it seems to not find helper applications which are inside other applications' packages. Is there any reason why you couldn't just

Re: Collections can be simple Attributes in Core Data

2008-10-01 Thread Jerry Krinock
On 2008 Sep, 30, at 10:58, I. Savant wrote: The 'correct' approach depends entirely on the model. Yes, I appreciated Amin's thoughts but didn't have much to add. An important step in modelling is to draw a potato around the part of the world that you're going to include. You have to

Re: -[NSScanner scanUpToString:stopString:NULL] - 10.3.9 Crash, due Xcode 3.1?

2008-10-01 Thread Michael Ash
On Wed, Oct 1, 2008 at 3:57 PM, Jerry Krinock [EMAIL PROTECTED] wrote: After updating from Xcode 3.0 to 3.1.1, my project crashes repeatably in 10.3.9, while loading the (old) Sparkle 1.1 framework, and in a couple other places. (Yes, I'm just about to cut my two or remaining Panther users

Re: Play Playlist in iTunes

2008-10-01 Thread Mr. Gecko
Ok I now read everything in the programming guide for Scripting Bridge and it is really cool, Now I can't seem to find out how to play a playlist from a name id or anything. How would I do that? Thanks, Mr. Gecko On Oct 1, 2008, at 1:10 PM, Uli Kusterer wrote: On 01.10.2008, at 19:51, Mr.

Re: NSWindowController retain count confusion

2008-10-01 Thread Patrick Mau
On 30.09.2008, at 04:30, James Walker wrote: I have an NSWindowController subclass that is defined as File's Owner in a nib. The window outlet is connected to a window, and the delegate outlet of the window goes back to the File's Owner. I was trying to release the controller in the

Can we discuss iPhone development yet?

2008-10-01 Thread fclee
I just got notified that Apple has dropped the NDA: http://www.iphoneatlas.com/2008/10/01/apple-drops-nda-for-released-iphone-software/ I wonder what are liberties are; concerning development questions. Ric. ___ Cocoa-dev mailing list

Re: Obtaining image from a scanner using ImageKit?

2008-10-01 Thread Scott Ribe
ICA is quite easy to use, but does not support multi-page scans. So, depends on your needs... -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Creating a PNG with rounded corners, background colour + gradient with alpha for use as a background

2008-10-01 Thread Michael Robinson
I'm making a plugin for Rapidweaver, and need to create a background image that has rounded corners + a border, an optional gradient, an optional background colour (that may show through the gradient depending on gradient's opacity). When I've got the image drawing correctly, depending on

Re: Can we discuss iPhone development yet?

2008-10-01 Thread Omar Qazi
Not immediately. (See: Please Hold off on iPhone Discussion) Sent from my iPhone (which I can talk about now) Omar Qazi Hello Galaxy On Oct 1, 2008, at 3:54 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I just got notified that Apple has dropped the NDA:

Which View to use?

2008-10-01 Thread J. Todd Slack
HI All, So I am working on an app where I want to use an object to display multiple things. Like first a list of users (results from a MYSQL Query) Second after they click a user they get a list of folders the user has. (again results from a MySQL query) What view can I use? I dont

Re: Finding the iTunes Music Library

2008-10-01 Thread has
Mr. Gecko wrote: Hello I am needing to know how to find the iTunes Music Library. I know people could have it in places other than ~/Music/iTunes/ because I moved mine to /Volumes/Music/ by holding down option at iTunes start. How would I determine where it is located. I looked in

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread D.K. Johnston
Where is editedRowName released? On 1 Oct, 2008, at 12:34, Christopher J Kemsley wrote: I'm writing a program that, in one table view, has the following code: id receivedName = [theDatabase itemAtIndex:editedRow] ; editedRowName = [receivedName mutableCopy] ; [receivedName release]; where

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread D.K. Johnston
On 1 Oct, 2008, at 12:57, Christopher J Kemsley wrote: I neglected to mention in my original post that, when this object is deallocated, it explicitly deallocated the editedRowName before calling a [super dealloc], so the thing should be deallocated. But how many times is a copy assigned

Re: Which View to use?

2008-10-01 Thread Graham Cox
On 2 Oct 2008, at 9:14 am, J. Todd Slack wrote: Like first a list of users (results from a MYSQL Query) Second after they click a user they get a list of folders the user has. (again results from a MySQL query) What view can I use? I dont really need an NSTable (or I could with just one

Re: Newbie: Simple display with NSView - problem

2008-10-01 Thread Jonathan del Strother
On Thu, Oct 2, 2008 at 12:42 AM, Graham Cox [EMAIL PROTECTED] wrote: On 2 Oct 2008, at 5:02 am, Genu Mathew wrote: On debugging, I found that when I run the command [NewWindow showWindow:self] in the APPController class, the constructor of 'OUSubImageView is called twice Sounds like you

Re: Which View to use?

2008-10-01 Thread Graham Cox
On 2 Oct 2008, at 9:44 am, Graham Cox wrote: Second after they click a user they get a list of folders the user has. (again results from a MySQL query) You could also look into NSBrowser - it might fit this type of thing well also. I've not used it so I can't comment on how customisable

Re: -[NSScanner scanUpToString:stopString:NULL] - 10.3.9 Crash, due Xcode 3.1?

2008-10-01 Thread Jerry Krinock
On 2008 Oct, 01, at 15:17, Michael Ash wrote: Without seeing the rest of your code I can't say for sure, but this is extremely suspect You should essentially always use this method (and any other method that uses a SomeClass** parameter to return values) like this: NSString *stringValue

Re: Cocoa-dev Digest, Vol 5, Issue 1701

2008-10-01 Thread Kieren Eaton
Chris, thank you that worked just fine, to bad the piece of information i read did not mention that... :( Sandro. On 1-Oct-08, at 12:47 PM, Chris Patterson wrote: Your XPath is almost correct, as far as I can tell. All you need to do is insert an @ character before the id attribute

Direct use of NSScroller?

2008-10-01 Thread James Walker
Is it possible to use a scroller without a scroll view? The first problem is that IB won't let me create an NSScroller that is not embedded in an NSScrollView. I guess I could shrink down the NSScrollView so that you only see the one scroll bar. Then the next problem would be how to set the

Re: NSString's mutableCopy creating a leak?

2008-10-01 Thread Brian Stern
Hi All, Just a note. Although the moderator doesn't wish to see discussion of list issues here he should be prepared for dozens, probably hundreds of questions here where the answers to the questions go something like you can't send dealloc to objects, you can't call drawRect from your

Re: Direct use of NSScroller?

2008-10-01 Thread Clark Cox
On Wed, Oct 1, 2008 at 7:13 PM, James Walker [EMAIL PROTECTED] wrote: Is it possible to use a scroller without a scroll view? The first problem is that IB won't let me create an NSScroller that is not embedded in an NSScrollView. Just instantiate a generic NSView, and set its class to

Re: -[NSScanner scanUpToString:stopString:NULL] - 10.3.9 Crash, due Xcode 3.1?

2008-10-01 Thread Michael Ash
On Wed, Oct 1, 2008 at 8:11 PM, Jerry Krinock [EMAIL PROTECTED] wrote: On 2008 Oct, 01, at 15:17, Michael Ash wrote: Without seeing the rest of your code I can't say for sure, but this is extremely suspect You should essentially always use this method (and any other method that uses a

Re: Play Playlist in iTunes

2008-10-01 Thread Michael Ash
On Wed, Oct 1, 2008 at 10:16 PM, Mr. Gecko [EMAIL PROTECTED] wrote: I think I would just use this AppleScript call [[[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@tell application \iTunes\ to play playlist \[EMAIL PROTECTED], [self replace:@\ with:@\\\ source:[sender

Re: Print report using WebView

2008-10-01 Thread Vitaly Ovchinnikov
Empty page is added even if I try to print just one small symbol instead of report. On Thu, Oct 2, 2008 at 12:37 AM, Sherm Pendley [EMAIL PROTECTED] wrote: On Wed, Oct 1, 2008 at 4:15 PM, Vitaly Ovchinnikov [EMAIL PROTECTED] wrote: I need to print reports with various styles. The only

  1   2   >