Re: Problems with ScriptingBridge and iTunes

2008-03-03 Thread has
Jens Alfke wrote: Moreover, since Obj-C is a dynamic language, it's more important what the class of the object is at runtime, than what type the pointers are defined as at compile time. You can change the type declarations, but it won't affect what actual objects you get back at runtime. Thi

Re: Problems with ScriptingBridge and iTunes

2008-03-03 Thread Steven Degutis
Thank you for the update on that sample code. I was hoping it would continue to be ignored because I was publicly berated in the #macdev channel for posting it, but oh well. Thanks to Wolf's post up there, I'm not going to continue to learn SB any longer, and I just hope Apple fixes it up. On Mon,

Using NSPredicate to parse strings

2008-03-03 Thread Jonathan Dann
Hi Guys, I'm trying to find a way to use NSPredicate to search an NSString for all occurrences of a string and return them to me. Ideally I need the returned strings ranges too. Is this possible? I can get is to tell me that a regex match is found using a predicate with the format @"SELF

Coredata - populating initial data on app load - best practices

2008-03-03 Thread Jason Kravitz
I am writing my first coredata application and am wondering what the recommended way is to populate initial data. Most coredata examples do a good job explaining binding and getting data from the UI but fail to refer to populating the initial data set. I was looking at the background fetching exam

Re: Combining NSLineBreakByWordWrapping + NSLineBreakByTruncatingTail in NSTextView

2008-03-03 Thread Mattias Arrelid
On 28 feb 2008, at 18.45, Aki Inoue wrote: Starting from Leopard, you can do -[NSCell setTruncatesLastVisibleLine:] or pass NSStringDrawingTruncatesLastVisibleLine to -[NSString drawWithRect:options:attributes:]. We don't have out-of-box support for NSTextView. If you feel there should b

Re: Using NSPredicate to parse strings

2008-03-03 Thread Mike Abdullah
Jonathon, you'll have much better luck with NSScanner. It's designed for exactly what you want. Mike. On 3 Mar 2008, at 15:37, Jonathan Dann wrote: Hi Guys, I'm trying to find a way to use NSPredicate to search an NSString for all occurrences of a string and return them to me. Ideally I

Typing attributes and the location of the insertion point

2008-03-03 Thread Todd Ransom
Hello, I have an application that auto-formats documents as the user types according to certain industry standards. For instance, it might change the indent on the text or it might apply bold or italic formatting. I was doing this using a text storage subclass that would look up the appro

Re: Coredata - populating initial data on app load - best practices

2008-03-03 Thread mmalc crawford
On Mar 3, 2008, at 7:48 AM, Jason Kravitz wrote: I am writing my first coredata application and am wondering what the recommended way is to populate initial data. Most coredata examples do a good job explaining binding and getting data from the UI but fail to refer to populating the initial dat

Re: When in the launch cycle does coredata data become available.

2008-03-03 Thread mmalc crawford
On Mar 3, 2008, at 2:27 AM, Conor wrote: Some of the setup methods are on a queue in the run loop and are done after applicationDidFinishLaunching: (in this case the content object of your array controller is not yet populated as the core data fetch hasn't been done yet). Run your method

Re: Coredata - populating initial data on app load - best practices

2008-03-03 Thread Jason Kravitz
Cheers, I thought I'd read through the CoreData programming guide but must have missed this FAQ at the end. So given the 3 options in this article, any guidelines for when one is more beneficial than another? * You can create the managed objects directly in code (as trivially illustrated in NS

Relaunching an application

2008-03-03 Thread Mattias Arrelid
Hi everyone, I have an application that I need to restart. An easy way to do this could be: [[NSWorkspace sharedWorkspace] launchApplication:executablePath]; [NSApp terminate:self]; The problem is that the above solution results in confusion in the system dock; sometimes the original appli

<    1   2