metadata to propertyList

2010-12-19 Thread Rainer Standke
Helo, I want to get file metadata into a propertyList. My first question is how to get the metadata for a specific file. I gather that there is not a way to get a NSMetadataItem for a specific file, other than to perform a NSMetadataQuery - which seems silly, since I have the file path to beg

NSToolbar help

2010-12-19 Thread lorenzo7620
I'm trying to add an NSToolbar to an existing application. I need compatibility with 10.4, so I'm creating the toolbar programmatically, initializing and configuring the toolbar in my -init. On launch, the toolbar does not appear and none of its delegate methods are called even though I set

Re: NSToolbar help

2010-12-19 Thread Knut Lorenzen
Am 19.12.2010 um 20:20 schrieb lorenzo7...@gmail.com: > I'm trying to add an NSToolbar to an existing application. I need > compatibility with 10.4, so I'm creating the toolbar programmatically, > initializing and configuring the toolbar in my -init. Just a shot in the dark, but perhaps -init

Re: NSToolbar help

2010-12-19 Thread lorenzo7620
On Dec 19, 2010 1:48pm, k...@highrolls.net wrote: toolbarAllowedItemIdentifiers should return the array of allowed items ... returning nil says there are not items, ergo no toolbar! On Dec 19, 2010, at 12:20 PM, lorenzo7...@gmail.com wrote: toolbarAllowedItemIdentifiers Thanks for the

Re: NSTextView scrolls to top on Save

2010-12-19 Thread Andy Lee
On Dec 18, 2010, at 10:38 PM, Andy Lee wrote: > As a learning experience, I'm trying to make a trivial document-based app: a > window with a text view that can edit and save RTF files. > > What I have now almost works, except that whenever I save changes, the text > view scrolls to the top. Nee

Re: How can I "set tab stops" in a UITextView?

2010-12-19 Thread Gordon Apple
Welcome to the lame world of UITextView. No styles, no attributes. Obviously, Apple, Inc. has something better, as shown in Pages, but they are not sharing it with the rest of us. Other than rolling your own with CoreText (which I have partly done -- and it's not easy), the only alternative I kno

Re: How can I "set tab stops" in a UITextView?

2010-12-19 Thread Kyle Sluder
On Sun, Dec 19, 2010 at 4:01 PM, Gordon Apple wrote: > Welcome to the lame world of UITextView.  No styles, no attributes. > Obviously, Apple, Inc. has something better, as shown in Pages, but they are > not sharing it with the rest of us.  Other than rolling your own with > CoreText (which I have

Re: NSTextView scrolls to top on Save

2010-12-19 Thread Kyle Sluder
On Sun, Dec 19, 2010 at 1:20 PM, Andy Lee wrote: > I can understand why Apple wouldn't use a bindings-based solution for this > example, since bindings is an advanced topic unto itself, but I think using > an NSTextStorage would be appropriate given the context.  Unless someone > spots a fatal

Re: NSTextView scrolls to top on Save

2010-12-19 Thread Andy Lee
On Dec 19, 2010, at 8:04 PM, Kyle Sluder wrote: > On Sun, Dec 19, 2010 at 1:20 PM, Andy Lee wrote: >> I can understand why Apple wouldn't use a bindings-based solution for this >> example, since bindings is an advanced topic unto itself, but I think using >> an NSTextStorage would be appropriate

Core Data mergeChangesFromContextDidSaveNotification: does not *completely* update the context ?

2010-12-19 Thread Aurélien Hugelé
Hi! I think mergeChangesFromContextDidSaveNotification: does not work as most people expect: I have a mainthread and a subthread. My subthread updates a managed object (change one of the property value) and save. In the mainthread, I use [mainThreadContext mergeChangesFromContextDidSaveNotifica

UIWebview: scrolling vs anchors

2010-12-19 Thread Donald Hall
I have a UIWebview in my app that I want to use to load an HTML document containing anchors so that I can jump around the document by tapping on the links to the various anchors. (e.g. a link at the bottom of the page to jump to the top of the page) I have the links and anchors working fine, e

UIBezierPath: trying to create an array with CGPointMake

2010-12-19 Thread colo
I'm in the processing of trying to create an array of Path points to draw a UIBezierPath CGRectMake onto each control point. Right now I am getting an error of error: void value not ignored as it ought to be I could totally be going about this the wrong way but until I know I better I am trying t

Re: UIWebview: scrolling vs anchors

2010-12-19 Thread John Joyce
On Dec 20, 2010, at 12:08 AM, Donald Hall wrote: > I have a UIWebview in my app that I want to use to load an HTML document > containing anchors so that I can jump around the document by tapping on the > links to the various anchors. (e.g. a link at the bottom of the page to jump > to the top