Re: Drawing a drop-shadow around a view

2008-07-25 Thread Ian Jackson
Hi Graham, if I understand your question, then I wanted to do something like this a while back. I got something off the internet, though I can't remember where. Here's the source that I incorporated into my code. It's been ages since I added it in, so I can't remember whether this takes

Re: Drawing a drop-shadow around a view

2008-07-25 Thread Ian Jackson
shadows. Ian. On 26/07/2008, at 7:36 AM, Jonathan Dann wrote: How odd I came across this yesterday on my travels! The site for this source is http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html Jonathan www.espresso-served-here.com On 25 Jul 2008, at 11:13, Ian Jackson wrote: Hi

Two Questions About Parsing a String

2008-07-22 Thread Ian Jackson
Hi, I'm looking for some help parsing a string from a file. Firstly, getting the string is causing some issues. I read the String Programming Guide for Cocoa, and got this: NSString *path = ...; NSData *data = [NSData dataWithContentsOfFile:path]; // assuming data is in UTF8 NSString

Re: Debugger at odds with reality? [SOLVED]

2008-04-27 Thread Ian Jackson
I've found that trashing the build folder is often a worthwhile step, and one other thing someone pointed out to me, is that you should do it when Xcode is not running. Otherwise it can still mysteriously remember some things that it's cached. Ian. On 27/04/2008, at 9:47 PM, Graham Cox

Re: Uneditable NSTableView

2008-04-23 Thread Ian Jackson
Perhaps you have a good reason, but from your description, and being used to using Mail, I'd expect the lower part to display the content with a single click. Have you used setTarget: and setAction: to coordinate this double click event? Ian. On 23/04/2008, at 8:33 PM, Ewan Delanoy wrote:

Re: Carriage returns and NSXMLParser

2008-04-23 Thread Ian Jackson
Whitespace is preserved, not ignored. But in your example, the new line is in the attribute value, so I don't suppose XML cares too much what's between the quotation marks. So if you can obtain the value of the data attribute, and print the value to the console, does it come out with a space

Re: NSTableView - hiding columns

2008-04-11 Thread Ian Jackson
OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE IS STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS. PLEASE THEN DELETE THE ORIGINAL MESSAGE. THANK YOU. -Original Message- From: Ian Jackson [mailto:[EMAIL

Re: Untitled NSPersistentDocument has no persistent store

2008-04-02 Thread Ian Jackson
Have you done the tutorial? http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/NSPersistentDocumentTutorial.pdf You can add in the data as you like, and save when you've finished. Ian. On 2/04/2008, at 9:42 PM, Quincey Morris wrote: It appears that a new

Re: Bindings for NSComboBox?

2008-04-02 Thread Ian Jackson
Does this mean that you want to create a new object and add it to the array, by typing a new string into the combo box (and pressing enter)? My feeling is you'd need to write a bit of code yourself for that. Ian. On 1/04/2008, at 9:44 AM, David Springer wrote: All, I'm having trouble

Re: Core Data/IB questions

2008-03-28 Thread Ian Jackson
to the To Dos example at: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html Adam On Thu, Mar 27, 2008 at 5:33 AM, Ian Jackson [EMAIL PROTECTED] wrote: If I may be so bold, I'd like to jump in on this question. I have a similar situation, but I want to have a table representing

Re: Core Data/IB questions

2008-03-27 Thread Ian Jackson
If I may be so bold, I'd like to jump in on this question. I have a similar situation, but I want to have a table representing a to-many relationship for entity1, which the user can populate by choosing any number of entries from a entity2. e.g. entity2 has 50 entries. entity1 1st

Re: NSPersistentDocument Tutorial (SOLVED)

2008-03-13 Thread Ian Jackson
I assumed that fullNameAndID would be available among the choices presented in the bindings pane. That not being the case, I tried typing it in, and it worked. Yay! Ian. On 13/03/2008, at 1:20 AM, Adam P Jenkins wrote: On Mar 12, 2008, at 5:15 AM, Ian Jackson wrote: I was happily

NSPersistentDocument Tutorial

2008-03-12 Thread Ian Jackson
I was happily plugging through the NSPersistentDocument Tutorial, when I got to the Creating a Custom Class chapter. The first strange thing is that when I created the files, the next instruction is to change the class name for the Employee entity from NSManagedObject to Employee, but this