NSAttributedString fill with gradient

2009-12-17 Thread Chris Purcell
I've tried setting the gradient as NSForegroundColorAttributeName in the attributes dictionary when creating the string but as I expected that didn't work. How would I go about filling the string with a gradient? Thanks! --Chris ___ Cocoa-dev mailing

NSOperationQueue for NSXMLParser object

2009-11-05 Thread Chris Purcell
Let me start with what I'm trying to accomplish. I have an app that is constantly running an animation, which's attributes are determined after downloading and parsing some XML. The XML is parsed at a given interval using an NSTimer. As expected, sometimes when the XML is being parsed th

iCal Notifications

2009-08-06 Thread Chris Purcell
I asked this question a while back, didn't get an answer. Figured I'd give it another shot. Is there any access to these notifications through the calendar API? Or is there another way to get access to it? Here is an example of what the notifications are: http://images.apple.com/hk/en/ser

NSURLRequest- setHTTPMethod to REPORT

2009-05-29 Thread Chris Purcell
Hello, I'm trying to issue a "REPORT" request to a server, the HTTP Method header needs to look like this: REPORT /bernard/work/ HTTP/1.1 So I use setHTTPMethod to set the HTTP Method: [theRequest setHTTPMethod:@"REPORT /bernard/work/"]; But when I issue the request, the server returns a

Move a NSTableView

2009-04-22 Thread Chris Purcell
Hello, I'm trying to shift a NSTableView down when the user is searching (using a NSSearchField) to display a custom view with some filtering options (like when you do a Finder search). Then hiding the custom view when the user is not searching. My problem is how exactly to move the tabl

Re: Create folder in protected directory

2009-04-16 Thread Chris Purcell
, Apr 16, 2009 at 5:59 PM, Chris Purcell > wrote: My App has to create a folder in a directory owned by the system. How would I go about doing this, do I need to use the security framework and get the user to authenticate themselves as an admin? Yes, the Security framework is necessary h

Create folder in protected directory

2009-04-16 Thread Chris Purcell
Hello everyone, My App has to create a folder in a directory owned by the system. How would I go about doing this, do I need to use the security framework and get the user to authenticate themselves as an admin? Thanks! --Chris ___ Cocoa-dev

NSScrollView like iTunes

2009-03-19 Thread Chris Purcell
I'm trying to create a view similar to the left iTunes bar (http://i39.tinypic.com/2hwp7w5.png ) and many other apps (Mail, iCal, etc.). Is this a NSScrollView or NSOutlineView? Or am I going about this the wrong way. Thanks, --Chris ___ Cocoa-

Re: NSStatusItem when clicked shows custom view

2009-03-06 Thread Chris Purcell
NSStatusItem. See if that will suit your needs +Clint On Thu, Mar 5, 2009 at 1:03 PM, Chris Purcell wrote: I'm looking to do something similar to this app: http://transmissionapps.com/ (Logbook). I've seen that done in a handful of apps, a custom window/view invoked when the NS

NSStatusItem when clicked shows custom view

2009-03-05 Thread Chris Purcell
I'm looking to do something similar to this app: http://transmissionapps.com/ (Logbook). I've seen that done in a handful of apps, a custom window/view invoked when the NSStatusItem is clicked. My two quesitons: 1) How is that window created. Is it a custom NSWindow or a regular NSWindo

Re: Output of NSHTTPCookieStorage to NSTableView

2008-07-01 Thread Chris Purcell
11:31 PM, Jens Alfke wrote: On 29 Jun '08, at 9:47 PM, Chris Purcell wrote: Thank you for the reply. I am a bit of a Cocoa newbie and I'm having trouble using the objectValueForTableColumn:. My NSTableView is only one column, but I would like to display all attributes of each k

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
ld be the easiest way to display each one of the attributes of the dictionary (version, name, value, etc.) in a separate column? How could I return just one of the attributes? Thank you! On Jun 29, 2008, at 12:56 PM, Jens Alfke wrote: On 29 Jun '08, at 9:39 AM, Chris Purcell wrote

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
Thank you for the reply. I think right now the simplest would be to convert the cookies array to an array of NSStrings. What would be the easiest way to do this? Thank you! On Jun 28, 2008, at 9:56 PM, Shawn Erickson wrote: On Sat, Jun 28, 2008 at 9:46 PM, Chris Purcell <[EM

Output of NSHTTPCookieStorage to NSTableView

2008-06-28 Thread Chris Purcell
Hello, Not sure where my problem is I've tried a few things and no success. I am trying to output NSHTTPCookieStorage *cookies array to a table view. Whenever I call the objectValueForTableColumn:row method the app errors out, but if I leave it out the app launches displaying the correct

Filter Multidimensional Array?

2008-05-16 Thread Chris Purcell
I have created a multidimensional array by creating 3 NSArray's (call them childArray1, childArray2, childArray3) and them adding them to one NSArray (call it parentArray). I am using predicate to search out the array which finds the item I'm searching for. However, how I return the name