Re: NSDictionary dictionaryWithContentsOfURL problem

2009-06-03 Thread Michael Vannorsdel
Could be one of many network programs like LittleSnitch or NetBarrier. Could also be he's using a proxy. On Jun 2, 2009, at 9:37 PM, Mr. Gecko wrote: Hello. For some reason, one of my customers is having a problem which I determined to be NSDictionary dictionaryWithContentsOfURL can't co

Scheduling an application

2009-06-03 Thread rethish
hi, I want to launch my application using a time based scheduling. I have created a plist by setting the keys: Label, onDemand, ProgramArguments and startCalenderInterval. And I placed the plist in /Library/LaunchDaemons. Then i loaded the plist manually using the terminal. It works fine on the s

Change font and text color of label which is a static NSTextField

2009-06-03 Thread Shraddha Karwan
Hi, I want to change the color and font of a label. I used the below method. I get no errors but it is not updating the Label with the required changes, - (NSAttributedString *)setLabelFont:(NSString *)str { NSColor *txtColor = [NSColor redColor]; NSFont *txtFont = [NSFont boldSystemFont

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread Andrew Farmer
On 3 Jun 2009, at 03:25, Shraddha Karwan wrote: I want to change the color and font of a label. I used the below method. I get no errors but it is not updating the Label with the required changes, - (NSAttributedString *)setLabelFont:(NSString *)str { NSColor *txtColor = [NSColor redColo

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread Shraddha Karwan
IBOutlet NSTextField *labelStr; I have linked this labelStr with the Label I created in my Interface Builder. I am able to change its attributes using [labelStr setTextColor:[NSColor redColor]]; [labelStr setFont:[NSFont labelFontOfSize:10]]; But the setAttributedStringValue doesn't seem to work

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread rajesh
did you try checking the Allows "Rich Text" field in Interface Builder for labelStr ? On Jun 3, 2009, at 1:13 PM, Shraddha Karwan wrote: IBOutlet NSTextField *labelStr; I have linked this labelStr with the Label I created in my Interface Builder. I am able to change its attributes using [

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread Shraddha Karwan
Yes, Checking / Unchecking this field doesn't make any change. I can still use the setColor and setFont methods even if the Rich Text field is disabled. On Wed, Jun 3, 2009 at 5:16 PM, rajesh wrote: > did you try checking the Allows "Rich Text" field in Interface Builder for > labelStr ? > > __

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread Andy Lee
On Jun 3, 2009, at 6:25 AM, Shraddha Karwan wrote: [labelStr setAttributedStringValue:[self setLabelFont:@"Checking for updates"]]; I suspect labelStr is nil. When are you executing this line? If labelStr is an outlet and you are doing it in an init method, that is too early -- labelStr h

Re: Change font and text color of label which is a static NSTextField

2009-06-03 Thread Shraddha Karwan
Thank You Andy. That was the cause. Changed the location of the statement from init to awakeFromnib and its working. On Wed, Jun 3, 2009 at 6:22 PM, Andy Lee wrote: > On Jun 3, 2009, at 6:25 AM, Shraddha Karwan wrote: > >> [labelStr setAttributedStringValue:[self setLabelFont:@"Checking for >>

Image (or view ?) not scaling with window

2009-06-03 Thread vinai
Hi Folks, I've run into a case where an image I am creating does not scale with its parent window. Some background - I am trying to create and application to process data stored within a file - much like any image data with a header. However, I am not opening anything with a standard image f

Re: Internationalizing Bundle Icon

2009-06-03 Thread Scott Andrew
Its not possible to do.. Its recommended that you don't put text on your application and document icons. Scott On Jun 2, 2009, at 7:27 PM, Richard Holliday wrote: Hi, The new icon icns file for my cocoa application (10.4 +) has text on it which needs to change based on the machine locale

Re: How determine if file is in Trash, given Path or Alias

2009-06-03 Thread Sean McBride
On 6/2/09 10:17 PM, Michael Ash said: >>>The description of [NSString UTF8String] says >>>that "the returned C string is automatically freed just as a returned >>>object would be released", which implies (to me) that the returned >>>pointer is to GC-controlled memory. >> >> Then shouldn't its retu

Help on adding volume control

2009-06-03 Thread Arnab Ganguly
Hi All, I would like to add volume control for my App.In the .nib file how can I add that ?Please help. Thanks Arnab ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 10:36 AM, Arnab Ganguly wrote: > I would like to add volume control for my App.In the .nib file how can I add > that ?Please help. Please read: http://catb.org/esr/faqs/smart-questions.html You have not provided a shred of information necessary to answer your very bro

Re: Image (or view ?) not scaling with window

2009-06-03 Thread Keary Suska
On Jun 3, 2009, at 7:45 AM, vinai wrote: I've run into a case where an image I am creating does not scale with its parent window. Some background - I am trying to create and application to process data stored within a file - much like any image data with a header. However, I am not openin

Re: How determine if file is in Trash, given Path or Alias

2009-06-03 Thread Michael Ash
On Wed, Jun 3, 2009 at 12:41 AM, Ken Thomases wrote: > On Jun 2, 2009, at 9:21 PM, Michael Ash wrote: > >> The NSString methods are unlikely to be problematic here. NSData is >> troublesome because it's returning an internal pointer. In other >> words, it's a pointer to some memory that it already

Re: Help on adding volume control

2009-06-03 Thread Arnab Ganguly
Oh I am really sorry about that.I have a player application.Created the Nib file.I have the stop and start button and it is working correctly.Would like to add a volume control mechanism for my player.So can you help me on this?What would be the NSButton type should be taken from the IB to meet the

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 11:05 AM, Arnab Ganguly wrote: > Oh I am really sorry about that.I have a player application.Created the Nib > file.I have the stop and start button and it is working correctly.Would like > to add a volume control mechanism for my player.So can you help me on > this?What wou

Re: Help on adding volume control

2009-06-03 Thread Arnab Ganguly
Thanks for the update.I am a newbie so queries are very basic. How do I bring the mic photo.Is it going to be a seperate image.Do we have anything similar in the IB. -Arnab On Wed, Jun 3, 2009 at 8:38 PM, I. Savant wrote: > On Wed, Jun 3, 2009 at 11:05 AM, Arnab Ganguly > wrote: > > Oh I am rea

Re: Cocoa-dev Digest, Vol 6, Issue 825

2009-06-03 Thread Mr. Gecko
I'll be sure to look at that when I get on his system to debug. On Jun 3, 2009, at 2:54:38 AM, Michael Vannorsdel wrote: Could be one of many network programs like LittleSnitch or NetBarrier. Could also be he's using a proxy. ___ Cocoa-dev mailing

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 11:13 AM, Arnab Ganguly wrote: > Thanks for the update.I am a newbie so queries are very basic. How do I > bring the mic photo.Is it going to be a seperate image.Do we have anything > similar in the IB. This list isn't the hand-holding type. You're expected to do your re

Re: Help on adding volume control

2009-06-03 Thread I. Savant
> On Wed, Jun 3, 2009 at 11:13 AM, Arnab Ganguly wrote: > Is it going to be a seperate image.Do we have anything > similar in the IB. ... and yes, if you want to display icons / images, you'll use an image view. The slider control does not provide for images to either side. This is immediately

Re: Image (or view ?) not scaling with window

2009-06-03 Thread vinai
--- On Wed, 6/3/09, Keary Suska wrote: > From: Keary Suska > Subject: Re: Image (or view ?) not scaling with window > To: "Cocoa-Dev (Apple)" > Date: Wednesday, June 3, 2009, 9:50 AM > > On Jun 3, 2009, at 7:45 AM, vinai wrote: > >> I've run into a case where an image I am creating does >> no

Re: Help on adding volume control

2009-06-03 Thread Arnab Ganguly
Thanks again for all help and your time. Regards Arnab On Wed, Jun 3, 2009 at 8:55 PM, I. Savant wrote: > > On Wed, Jun 3, 2009 at 11:13 AM, Arnab Ganguly > wrote: > > Is it going to be a seperate image.Do we have anything > > similar in the IB. > > ... and yes, if you want to display icons /

Re: Help on adding volume control

2009-06-03 Thread Dave DeLong
Brandon's BWToolkit has a textured slider that has the speaker images incorporated in it. Be aware, though, that it's the sort of control that looks best on a textured/metal background: http://brandonwalkin.com/bwtoolkit/ HTH, Dave On Jun 3, 2009, at 9:25 AM, I. Savant wrote: On Wed, Jun

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 11:31 AM, Dave DeLong wrote: > Brandon's BWToolkit has a textured slider that has the speaker images > incorporated in it.  Be aware, though, that it's the sort of control that > looks best on a textured/metal background: >  http://brandonwalkin.com/bwtoolkit/ Good catch.

Re: How heavy is NSLayoutManager?

2009-06-03 Thread Douglas Davidson
On Jun 2, 2009, at 6:17 PM, Graham Cox wrote: You don't say what you think might be a problem - speed, memory use? I find that speed for my purposes is entirely adequate - I can interactively adjust objects that cause text re-layout and it keeps up with that no problem, even when the text

Re: Scheduling an application

2009-06-03 Thread Nick Zitzmann
On Jun 3, 2009, at 3:52 AM, rethish wrote: I want the plist to be loaded automatically on the specified time and launch my application. How can be it done? Automatic plist loading only happens on reboot (if it's in the system library) or login (if it's in the user's library). You'll have

Re: Help on adding volume control

2009-06-03 Thread Sean McBride
On 6/3/09 11:38 AM, I. Savant said: > Good catch. I took a look at it when it was released and it's great, >but I quickly ran into some UI bugs using the controls in Interface >Builder that made me give up on it. I keep checking for updates but >have seen no activity these last few months since 1

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 11:53 AM, Sean McBride wrote: > The newest version is clearly 1.1: Bah, you're right. I was going on memory and got it wrong. :-) Still, that was released in February. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Help on adding volume control

2009-06-03 Thread Benjamin Dobson
On 3 Jun 2009, at 16:23:20, I. Savant wrote: As for the overall approach, I don't know of a "mic photo", but in the Mac OS, icons to either side of a slider are usually a small speaker with no sound waves to the left and one with several (I think usually three or so) sound waves to the right. T

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Wed, Jun 3, 2009 at 2:49 PM, Benjamin Dobson wrote: > It may be worth noting that these do exist in the Apple Symbols font, > although relying on that could be very shaky ground. Hmm ... I can't seem to find the speaker symbols anywhere in that font, nor in the character palette (under all c

Disc recording framework estimatedLength

2009-06-03 Thread David Melgar
Where can I ask a question about the Disc Recording Framework? In particular, how can I figure out how much will fit onto a data disc as I populate a track? I've tried to guess how much space it will consume based on the size of files, but the actual amount reported by [Track estimateLength

Re: Help on adding volume control

2009-06-03 Thread Benjamin Dobson
On 3 Jun 2009, at 19:57:53, I. Savant wrote: On Wed, Jun 3, 2009 at 2:49 PM, Benjamin Dobson wrote: It may be worth noting that these do exist in the Apple Symbols font, although relying on that could be very shaky ground. Hmm ... I can't seem to find the speaker symbols anywhere in that f

NSBrowser & Core Data?

2009-06-03 Thread KK
Hello, I am writing a program that needs to load hierarchical data from an XML document (that I have loaded into a NSXMLDocument), into a NSBrowser... I tried modifying the SimpleBrowser? example code to suit my needs, but then I started wondering if Core Data would be able to do it... I looked up

launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
How do I configure a launchd .plist file to detect when an application running. Thanks Tom ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-de

Re: launchd detecting when an application is running

2009-06-03 Thread Dave Keck
Your question is unclear and doesn't make much sense. Please give lots of clarification, and consider posting your question on a list where it's more on-topic, such as darwin-dev or launchd-dev (over at macosforge). David ___ Cocoa-dev mailing list (Co

Re: Help on adding volume control

2009-06-03 Thread I. Savant
On Jun 3, 2009, at 4:55 PM, Benjamin Dobson wrote: Switch the view to Glyph. Set the font to Apple Symbols. Look under 4909-4911. http://www.quicksnapper.com/sabrelight/image/apple-symbols Awesome. Thanks for the tip. -- I.S. ___ Cocoa-de

Detecting when fetch: finishes

2009-06-03 Thread Ulai Beekam
I have an NSArrayController that, at the request of the user, can be given a new fetch predicate. To do that I use the setFetchPredicate: method. How can I detect when this predicate has been applied and the appropriate fetching is done? I have not come across any delegate method for it. I sus

Re: Detecting when fetch: finishes

2009-06-03 Thread Keary Suska
On Jun 3, 2009, at 5:12 PM, Ulai Beekam wrote: I have an NSArrayController that, at the request of the user, can be given a new fetch predicate. To do that I use the setFetchPredicate: method. How can I detect when this predicate has been applied and the appropriate fetching is done? I have

RE: Detecting when fetch: finishes

2009-06-03 Thread Ulai Beekam
What do you mean do the fetch myself? Do you mean I should not use an NSArrayController? That would sound overkill as NSArrayController plus its fetch predicate gives me a lot of functionality for free, e.g. updating dynamically when underlying objects are added/removed. Can you elaborate? ---

Referring to file by Alias ^or^ path

2009-06-03 Thread Bill Monk
On Jun 1, 2009, at 6:59 PM, je...@ieee.org wrote: The following is a category on NSData which has two methods, one for converting a path to an alias, and its vice versa. I've cobbled it together from various sources over time. Couple of points... Given that your category depends on FSNewA

Re: Detecting when fetch: finishes

2009-06-03 Thread Keary Suska
On Jun 3, 2009, at 6:19 PM, Ulai Beekam wrote: What do you mean do the fetch myself? Do you mean I should not use an NSArrayController? That would sound overkill as NSArrayController plus its fetch predicate gives me a lot of functionality for free, e.g. updating dynamically when underlying

Re: Scheduling an application

2009-06-03 Thread Jerry Krinock
On 2009 Jun 03, at 08:48, Nick Zitzmann wrote: On Jun 3, 2009, at 3:52 AM, rethish wrote: I want the plist to be loaded automatically on the specified time and launch my application. Automatic plist loading only happens on reboot (if it's in the system library) or login (if it's in the

Re: Referring to file by Alias ^or^ path

2009-06-03 Thread Jerry Krinock
On 2009 Jun 03, at 17:26, Bill Monk wrote: Given that your category depends on FSNewAliasFromPath, which is 10.5-only, both blocks of #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 can be dispensed with. Hehe. Well, like I said, my code had been "cobbled together over

QTCaptureSession class reference

2009-06-03 Thread Cain John
I cannot find this documentation. Searching the Mac Dev Center gives over 60 references to the class but no documentation of it's properties and methods. Hope that this is an appropriate list for this question. There doesn't seem to be an Apple sponsored QT list. John kergunyah...@gmail.com

NSAppleScript's compileAndReturnError always succeeds

2009-06-03 Thread Paul J. Lucas
Given that NSAppleScript objects are always supposed to run on the main thread, I created a small "proxy" object to use: @interface AppleScriptProxy : NSObject { NSAppleScript *m_script; NSDictionary *m_errorDict; } - (id) init; - (void) compileScript:

Re: QTCaptureSession class reference

2009-06-03 Thread M Pulis
Check out http://developer.apple.com/documentation/QuickTime/Conceptual/ QTKitCaptureProgrammingGuide/Introduction/Introduction.html On Jun 3, 2009, at 5:56 PM, Cain John wrote: I cannot find this documentation. Searching the Mac Dev Center gives over 60 references to the class but no docu

Re: Detecting when fetch: finishes

2009-06-03 Thread Kyle Sluder
On Wed, Jun 3, 2009 at 6:21 PM, Keary Suska wrote: > I wonder if you can make an NSArrayController subclass, override > -fetchWithRequest:merge:error: to just call super, and after the call (which > should be synchronous), call your special post-processing method. Just a > stab in the dark, but mi

Re: QTCaptureSession class reference

2009-06-03 Thread Fritz Anderson
On 3 Jun 2009, at 7:56 PM, Cain John wrote: I cannot find this documentation. Searching the Mac Dev Center gives over 60 references to the class but no documentation of it's properties and methods. Hope that this is an appropriate list for this question. There doesn't seem to be an Apple sp

Re: launchd detecting when an application is running

2009-06-03 Thread Tom Hohensee
On Jun 3, 2009, at 5:23 PM, Dave Keck wrote: Sorry, that question really was bad. I have written an application that I would like to launch whenever a certain app is launched. I have used LaunchAgents in the past to detect events such as USB insertion and volume mounting to perform certain

Re: QTCaptureSession class reference

2009-06-03 Thread John Cain
Thanks - I had already seen that and it only mentions 3 methods startRunning addInput addOutput Is that it? no stopRunning or removeInput/Output or anything else. Perhaps thats why there is nothing more specific elsewhere ie there *IS *nothing more. 2009/6/4 M Pulis > > Check out > > http://d

Re: QTCaptureSession class reference

2009-06-03 Thread Andy Lee
On Jun 3, 2009, at 11:41 PM, Fritz Anderson wrote: On 3 Jun 2009, at 7:56 PM, Cain John wrote: I cannot find this documentation. Searching the Mac Dev Center gives over 60 references to the class but no documentation of it's properties and methods. Hope that this is an appropriate list for

Re: launchd detecting when an application is running

2009-06-03 Thread Kyle Sluder
On Wed, Jun 3, 2009 at 8:44 PM, Tom Hohensee wrote: > I was > wondering if there was a launchd.plist key that allowed for launchd to > detect an application startup. launchd is explicitly designed not to have this functionality. All inter-application dependencies must be carried out through some

Re: Detecting when fetch: finishes

2009-06-03 Thread mmalc Crawford
On Jun 3, 2009, at 4:12 PM, Ulai Beekam wrote: I have an NSArrayController that, at the request of the user, can be given a new fetch predicate. To do that I use the setFetchPredicate: method. How can I detect when this predicate has been applied and the appropriate fetching is done? I hav

delegate dealloc in NSToolbar customItem

2009-06-03 Thread Alejandro Rodriguez
Hello all, I have an issue that is giving me some serious trouble. I have a NSPopupButton in a NSToolbar, this button has a menu which has the windowController as its delegate. everything works fine until I try to edit the toolbar, when I do that the items encode with an NSArchiver and t