RE: Help: Create, import and edit SVG object in Cocoa app

2012-07-18 Thread lupeiyu
Hello! Thank you for your reply! I find some apps like iDraw in AppStore, it can import and export SVG. Can you tell me the idear of the app works? Is there any documents about it? Best wishes for you~ From: Graham Cox [mailto:graham@bigpond.com] Sent: Wednesday, July 18,

Re: Help: Create, import and edit SVG object in Cocoa app

2012-07-18 Thread Graham Cox
On 18/07/2012, at 3:53 PM, lupeiyu wrote: > I find some apps like iDraw in AppStore, it can import and export SVG. > Can you tell me the idear of the app works? > You need to understand the magnitude of your question. My app (a competitor to iDraw) consists of about 400+ classes ON TOP of Coc

Re: СoreGraphics text drawing performance

2012-07-18 Thread Graham Cox
On 13/07/2012, at 3:15 AM, Nazar Bartosik wrote: > I wonder if is there any more efficient way to draw the text in stroke mode, > since this one seem to be quite slow. You can combine fill and stroke modes and draw it in one pass by using kCGTextFillStroke --Graham ___

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-18 Thread Gideon King
I always use RBSplitView - has all that stuff built in and more… http://brockerhoff.net/blog/tag/rbsplitview/ Seems to work fine for my needs. Regards Gideon On 03/07/2012, at 2:40 PM, Motti Shneor wrote: > Thanks Graham (Sigh…) > > I was beginning to think I'm stupid or something, strug

RE: Help: Create, import and edit SVG object in Cocoa app

2012-07-18 Thread lupeiyu
Thank you very much~ From: Graham Cox [mailto:graham@bigpond.com] Sent: Wednesday, July 18, 2012 2:01 PM To: lupeiyu Cc: cocoa-dev@lists.apple.com Subject: Re: Help: Create, import and edit SVG object in Cocoa app On 18/07/2012, at 3:53 PM, lupeiyu wrote: I find some apps like

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
On 7/18/12 1:15 AM, Mike Abdullah wrote: When I call rearrangeObjects on the array controller, the result gets rectified. However, even with automaticallyRearrangesObjects = NO, the array controller rearranges automatically so when I rearrange manually after setting the filter, I get two KVO chan

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
On 7/18/12 2:14 AM, Ken Thomases wrote: I would check if an exception has been thrown during the setting of the filter, thus interrupting it from rearranging the objects. My suspicion is that you have a KVO-compliance bug that means that it can't unregister an observation. That would log into

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Richard Altenburg (Brainchild)
If you create a new instance of a class, all its instance variables are zero, so any pointers to objects like strings and arrays are zero as well, they are there but do not point to anything. The instantiation does not automatically create those objects as well for you, you are responsible. You

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Kyle Sluder
On Mon, Jul 9, 2012, at 02:34 PM, Alfian Busyro wrote: > I want to ask you guy's opinion about this issue. > And if some of you guys have an experience with it, please share it with > me. As said before, there is no supported way to do this. You should not attempt it. Discussion about methods of i

Re: Help: Create, import and edit SVG object in Cocoa app

2012-07-18 Thread Richard Altenburg (Brainchild)
This maybe? [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 6 jul. 2012, om 04:59 heeft lupeiyu het volgende geschreven: > I want to create SVG objects in my cocoa application using iPad Devices. > > And also I want to import an

Re: ARC and reinterpret_cast

2012-07-18 Thread Rick Mann
On Jul 9, 2012, at 16:00 , John McCall wrote: From: Rick Mann Subject: ARC and reinterpret_cast? Date: July 7, 2012 9:13:29 PM PDT To: Cocoa-Dev List Hi. I'd like to write code like this: MyObject* foo = reinterpret_cast<__bridge MyObject*> (someVoid

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Charles Srstka
On Jul 9, 2012, at 12:34 AM, Alfian Busyro wrote: > I'm a newbie in Cocoa framework, XCode and also Obj-C. > I'm still struggling to create an icon overlay in finder like the one in that > dropbox did. > During my investigation about this I found that dropbox was using injection > method to the

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Lee Ann Rucker
In init, and only when they need it. They're all initialized to nil, which is a perfectly reasonable value for an instvar to have; there's very rarely a reason to do anything like > name = [NSString string]; because sending a method to nil is perfectly safe, unlike C++. > foodLists = [

Re: Looking for better solution than this old hack

2012-07-18 Thread Quincey Morris
On Jul 17, 2012, at 21:44 , Graham Cox wrote: > The particular thing that's bothering me the most is that I have a > source-list outline view in my floating palette, and it responds to the > window activation state even though for the floating panel it's meaningless. > I'd rather it didn't and

Re: Core Data Multiuser

2012-07-18 Thread Steve Steinitz
Hi Flavio, While Apple, SQLite, myself and any sensible software developer advise against it, Core Data can run multi-user by placing the database on a server which supports AFP (e.g. a fast Synology NAS over gigabit ethernet). SQLite has limited optimistic locking support, but the record locki

Re: Looking for better solution than this old hack

2012-07-18 Thread Uli Kusterer
On 18.07.2012, at 06:27, Graham Cox wrote: > I'd like to know if there is a supported way to do this. It seems a bit crazy > that floating panels even bother modulating the active state of controls when > they are floating and are *always* effectively active, and it looks better > and is more us

Re: ARC and reinterpret_cast

2012-07-18 Thread Jean-Daniel Dupas
Le 18 juil. 2012 à 08:28, Rick Mann a écrit : > > On Jul 9, 2012, at 16:00 , John McCall wrote: > > From: Rick Mann > Subject: ARC and reinterpret_cast? > Date: July 7, 2012 9:13:29 PM PDT > To: Cocoa-Dev List > > Hi. I'd like to write code like this: > >

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Uli Kusterer
On 18.07.2012, at 09:09, Lee Ann Rucker wrote: > In init, and only when they need it. They're all initialized to nil, which is > a perfectly reasonable value for an instvar to have; there's very rarely a > reason to do anything like > > fly2never wrote: >>name = [NSString string]; > > becau

Re: Looking for better solution than this old hack

2012-07-18 Thread Uli Kusterer
On 18.07.2012, at 09:12, Quincey Morris wrote: > There are 3 states for enabled controls**, not two: > > 1. In an inactive window (Snow Leopard+ at least -- I think the appearance > was different in Leopard), controls are colorless with a lighter shade of > gray textured background (just like th

Re: ARC and reinterpret_cast

2012-07-18 Thread Rick Mann
On Jul 18, 2012, at 1:22 , Jean-Daniel Dupas wrote: > Just a though, but isn't it possible to define yourself a template function > to do that ? > > something like > > template > static inline C bridge_cast(void *ptr) { return (__bridge C)ptr; } Hey, that's kinda cool! I think that might w

Re: Looking for better solution than this old hack

2012-07-18 Thread Graham Cox
On 18/07/2012, at 5:12 PM, Quincey Morris wrote: > It would seem that floating panels ought to follow the #2 and #3 rule. It's > not clear that "window activation state" is meaningless. A user should be > able to see, for example, whether the up and down arrows move the selection > in the sour

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Alfian Busyro
Just like I thought, injecting code is not a good way to do this. So, is it impossible to do this without injecting code to Finder ? With Regards, Alfian On 12/07/18 15:18, Kyle Sluder wrote: On Mon, Jul 9, 2012, at 02:34 PM, Alfian Busyro wrote: I want to ask you guy's opinion about this iss

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Chris Ridd
On 18 Jul 2012, at 08:09, Lee Ann Rucker wrote: > In init, and only when they need it. They're all initialized to nil, which is > a perfectly reasonable value for an instvar to have; there's very rarely a > reason to do anything like > >>name = [NSString string]; > > because sending a met

KVG generic enough?

2012-07-18 Thread William Squires
Okay, after reading some of the documentation on KVC coding, I understand (I think) that the point is to allow me to specify a property of an object with an NSString, then set/get that property value using KVC (i.e. valueForKey: or setValue:forKey:). But it seems like the fact that there's no

Re: KVG generic enough?

2012-07-18 Thread William Squires
Oops, the subject should have read "KVC", not "KVG"! :) my bad. On Jul 18, 2012, at 8:08 AM, William Squires wrote: > Okay, after reading some of the documentation on KVC coding, I understand (I > think) that the point is to allow me to specify a property of an object with > an NSString, then

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Jean-Daniel Dupas
Le 18 juil. 2012 à 15:03, Chris Ridd a écrit : > > On 18 Jul 2012, at 08:09, Lee Ann Rucker wrote: > >> In init, and only when they need it. They're all initialized to nil, which >> is a perfectly reasonable value for an instvar to have; there's very rarely >> a reason to do anything like >>

Re: KVG generic enough?

2012-07-18 Thread Jean-Daniel Dupas
Le 18 juil. 2012 à 15:08, William Squires a écrit : > Okay, after reading some of the documentation on KVC coding, I understand (I > think) that the point is to allow me to specify a property of an object with > an NSString, then set/get that property value using KVC (i.e. valueForKey: or >

Re: KVG generic enough?

2012-07-18 Thread Marco Tabini
On 2012-07-18, at 9:08 AM, William Squires wrote: > Okay, after reading some of the documentation on KVC coding, I understand (I > think) that the point is to allow me to specify a property of an object with > an NSString, then set/get that property value using KVC (i.e. valueForKey: or > se

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Lee Ann Rucker
>> fly2never wrote: >>name = [NSString string]; > >> because sending a method to nil is perfectly safe, unlike C++. > Ah! No! That's not a blanket guarantee! It is only valid for methods that > return void, integer types or pointers. If your method returns a struct and > you send it to NIL

Re: KVG generic enough?

2012-07-18 Thread Graham Cox
On 18/07/2012, at 11:08 PM, William Squires wrote: > How can I determine what I get back? (i.e. what does the id pointer point to? > an NSString? an NSNumber? NSDecimalNumber? NSData? another NSObject subclass?) Others have told you about -isKindOfClass, but I think you are incorrect in think

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Alex Zavatone
On Jul 18, 2012, at 10:19 AM, Lee Ann Rucker wrote: > >>> fly2never wrote: >>> name = [NSString string]; >> >>> because sending a method to nil is perfectly safe, unlike C++. But doesn't the other way around, calling an undefined method in/on an object, instantly SIGABRT? _

Re: KVG generic enough?

2012-07-18 Thread Alex Zavatone
On Jul 18, 2012, at 10:22 AM, Graham Cox wrote: > > On 18/07/2012, at 11:08 PM, William Squires wrote: > >> How can I determine what I get back? (i.e. what does the id pointer point >> to? an NSString? an NSNumber? NSDecimalNumber? NSData? another NSObject >> subclass?) > > > Others have to

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Jean-Daniel Dupas
Le 18 juil. 2012 à 16:19, Lee Ann Rucker a écrit : > >>> fly2never wrote: >>> name = [NSString string]; >> >>> because sending a method to nil is perfectly safe, unlike C++. > >> Ah! No! That's not a blanket guarantee! It is only valid for methods that >> return void, integer types or poin

Re: KVG generic enough?

2012-07-18 Thread Graham Cox
On 19/07/2012, at 12:57 AM, Alex Zavatone wrote: > How do you automatically know its type if you know its name? I'm interested > to understand the "why" of that statement. Because it tells you the type right there in the @property declaration! If you're expecting a string and the object retu

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Graham Cox
On 19/07/2012, at 12:55 AM, Alex Zavatone wrote: > But doesn't the other way around, calling an undefined method in/on an > object, instantly SIGABRT? It throws an exception. How the exception is handled will vary. In an app it usually reaches the top and gets ignored, but sometimes it could

Re: Help with strange NSInvalidArgumentException

2012-07-18 Thread Sean McBride
Mike, Thanks for answering. I never directly call that. Though I call plain-old commitEditing in about 100 different places. Further searching found one similar report:

[ANN]: Beeblex - Free IAP verification service for iOS

2012-07-18 Thread Marco Tabini
Howdy! My company launched a (completely free) verification service for in-app purchases on iOS, designed for apps that do not have a server-side component. The service, called Beeblex, requires only minimal set up—we provide a simple SDK, which we have also open-sourced, and we perform the val

Re: KVG generic enough?

2012-07-18 Thread Alex Zavatone
On Jul 18, 2012, at 11:06 AM, Graham Cox wrote: > > On 19/07/2012, at 12:57 AM, Alex Zavatone wrote: > >> How do you automatically know its type if you know its name? I'm interested >> to understand the "why" of that statement. > > > Because it tells you the type right there in the @propert

Re: KVG generic enough?

2012-07-18 Thread Alex Zavatone
On Jul 18, 2012, at 11:06 AM, Graham Cox wrote: > > On 19/07/2012, at 12:57 AM, Alex Zavatone wrote: > >> How do you automatically know its type if you know its name? I'm interested >> to understand the "why" of that statement. > > > Because it tells you the type right there in the @propert

Re: looking for a memory problem

2012-07-18 Thread Sean McBride
On Wed, 18 Jul 2012 11:03:31 +1000, Shane Stanley said: >> writing for GC and ARC is not so different, and you can even switch >over slowly > >Could you elaborate on what you mean by "switch over slowly"? I think I >understand the idea if one is coming from manual reference counting, but >I though

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
On 7/17/12 11:41 PM, Markus Spoettl wrote: I have an NSArrayController (automaticallyRearrangesObjects = YES) on which I set a filterPredicate in code (not through bindings). Most of the time, rearranging works but in one 100% reproducible case, the controller produces an empty arrangedObjects

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Kyle Sluder
On Jul 18, 2012, at 1:27 AM, Uli Kusterer wrote: > On 18.07.2012, at 09:09, Lee Ann Rucker wrote: >> In init, and only when they need it. They're all initialized to nil, which >> is a perfectly reasonable value for an instvar to have; there's very rarely >> a reason to do anything like >> >> f

NSTokenField: "value" binding hijacks down-arrow key

2012-07-18 Thread Jerry Krinock
• "value" binding of an NSTokenField bound is bound via an object controller to an array property of a model object. • -tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: is implemented to show completions. The completions menu shows, but when user hits the down-arrow key, i

NSAutounbinder not releasing my object in a timely manner

2012-07-18 Thread Jonathan Taylor
I am tearing my hair out here with yet another retain issue with the NSAutounbinder. I don't know what I am doing to keep hitting these problems, and unfortunately going back through peoples past (very helpful) replies to my questions on both this and blocks+autorelease pools has not shed any li

Re: Core Data Multiuser

2012-07-18 Thread Flavio Donadio
Steve, I agree with Apple, SQLite, you and every other sensible developer out there: I won't try this! :) Cheers, Flavio On 18/07/2012, at 04:49, Steve Steinitz wrote: > Hi Flavio, > > While Apple, SQLite, myself and any sensible software developer advise > against it, Core Data can run mu

Re: Save photo taken by UIImagePickerController

2012-07-18 Thread David Duncan
On Jul 11, 2012, at 5:18 AM, Vavelin Kevin wrote: > - (void) imagePickerController:(UIImagePickerController *)picker > didFinishPickingMediaWithInfo:(NSDictionary *)info > { > >UIImage *image = [info > objectForKey:@"UIImagePickerControllerOriginalImage"]; This may not be a problem (due t

Re: СoreGraphics text drawing performance

2012-07-18 Thread David Duncan
On Jul 12, 2012, at 10:15 AM, Nazar Bartosik wrote: > In order to have my text visible at any background I draw it twice: once in > stroke mode and then once in fill mode. > Code sample below: > > CGContextSetTextDrawingMode(ctx, kCGTextStroke);// Stroke mode > [string drawAtPoint:point

Re: NSAutounbinder not releasing my object in a timely manner

2012-07-18 Thread Jerry Krinock
On 2012 Jul 18, at 09:45, Jonathan Taylor wrote: > this nasty NSAutounbinder thingy then jumps in and re-retains it in some evil > under-the-covers voodoo to do with avoiding retain cycles (as I understand > it). Unfortunately the balancing autorelease only occurs 16 seconds later > when I mov

Re: looking for a memory problem

2012-07-18 Thread Charles Srstka
On Jul 18, 2012, at 12:45 AM, Martin Hewitson wrote: > On 18, Jul, 2012, at 03:07 AM, Charles Srstka > wrote: > >> On Jul 17, 2012, at 11:31 AM, Martin Hewitson wrote: >> >>> On 17, Jul, 2012, at 05:42 PM, Sean McBride wrote: >>> On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said:

Re: NSAutounbinder not releasing my object in a timely manner

2012-07-18 Thread TAYLOR J.M.
> > this nasty NSAutounbinder thingy then jumps in and re-retains it in some > > evil under-the-covers voodoo to do with avoiding retain cycles (as I > > understand it). Unfortunately the balancing autorelease only occurs 16 > > seconds later when I move the mouse! While not catastrophic this is

Re: NSAutounbinder not releasing my object in a timely manner

2012-07-18 Thread Ken Thomases
On Jul 18, 2012, at 3:28 PM, TAYLOR J.M. wrote: >>> this nasty NSAutounbinder thingy then jumps in and re-retains it in some >>> evil under-the-covers voodoo to do with avoiding retain cycles (as I >>> understand it). Unfortunately the balancing autorelease only occurs 16 >>> seconds later when

Re: NSAutounbinder not releasing my object in a timely manner

2012-07-18 Thread Jerry Krinock
On 2012 Jul 18, at 13:28, TAYLOR J.M. wrote: > it's the fact that the progress bar is just sitting there until I move the > mouse that alarms me. I missed that part. So, this progress bar is in a sheet. Is the sheet done? If so, -endSheet:. If not, send -setHidden:YES to the progress bar.

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Uli Kusterer
On 18.07.2012, at 12:37, Alfian Busyro wrote: > Just like I thought, injecting code is not a good way to do this. > So, is it impossible to do this without injecting code to Finder ? For what purpose do you need this? If you only need a small number of animation steps, you could just set up a di

Re: KVG generic enough?

2012-07-18 Thread Jens Alfke
On Jul 18, 2012, at 6:08 AM, William Squires wrote: > But it seems like the fact that there's no way to specify (or grab) the value > of the property in a generic-enough manner would be a problem - anyone using > it would still have to know the data type of the property they want to > access,

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Jens Alfke
On Jul 18, 2012, at 3:37 AM, Alfian Busyro wrote: > Just like I thought, injecting code is not a good way to do this. > So, is it impossible to do this without injecting code to Finder ? Yes, it is impossible. The Finder is not meant to be extended/hacked and has no API for this. This is absol

Re: looking for a memory problem

2012-07-18 Thread Shane Stanley
On 19/07/2012, at 1:35 AM, Sean McBride wrote: > But you can prepare your code slowly, in a way that supports both. ex: > - replace all use of NSAllocateCollectable with malloc/free > - change 'retain' to 'strong' in property declarations > - replace CFMakeCollectable with CFBridgingRelease > - r

Re: KVG generic enough?

2012-07-18 Thread William Squires
On Jul 18, 2012, at 8:16 AM, Marco Tabini wrote: > > On 2012-07-18, at 9:08 AM, William Squires wrote: > >> Okay, after reading some of the documentation on KVC coding, I understand (I >> think) that the point is to allow me to specify a property of an object with >> an NSString, then set/ge

Re: Icon Overlay on Mac OSX

2012-07-18 Thread Lee Ann Rucker
On Jul 8, 2012, at 10:34 PM, Alfian Busyro wrote: > > > I want to ask you guy's opinion about this issue. My opinion: No way on earth am I letting Dropbox near my system. > And if some of you guys have an experience with it, please share it with me. There are official ways to change the Dock

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Quincey Morris
On Jul 18, 2012, at 08:52 , Markus Spoettl wrote: > I also looked at the predicate operator type as a potential source of the > issue but I can't see a problem there. I'm using > NSEqualToPredicateOperatorType is fine, as I do want a comparison using > -equalTo: . NSMatchesPredicateOperatorType

Re: KVG generic enough?

2012-07-18 Thread Jens Alfke
On Jul 18, 2012, at 4:46 PM, William Squires wrote: > Okay, but the problem with wrapped scalars is determining what went in (int, > float, char, BOOL) once you get it out (presumably as an NSNumber)? I suppose > one way would be to define a 'type' dictionary in the object whose properties >

Re: Sizing NSTableView to data

2012-07-18 Thread Andrew Satori
Unfortunately, the sizeToFit method seems to create and infinite loop condition. trying to sort out WHY it happens. On Jul 18, 2012, at 1:13 AM, Kyle Sluder wrote: > On Thu, Jun 28, 2012, at 04:42 PM, Maury Markowitz wrote: >> I am working on the ODBCkit's Query Tool to make it work across

Regex library recommendations ?

2012-07-18 Thread Erik Stainsby
My project is going to require several rounds of string parsing, and I'm an old perl hand, so I naturally want to add a regex wrapper to my workspace. Anyone got a favorite to recommend ? Erik ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Regex library recommendations ?

2012-07-18 Thread Conrad Shultz
NSRegularExpression? (Sent from my iPhone.) -- Conrad Shultz On Jul 18, 2012, at 19:59, Erik Stainsby wrote: > My project is going to require several rounds of string parsing, and I'm an > old perl hand, so I naturally want to add a regex wrapper to my workspace. > Anyone got a favorite to r

Re: Regex library recommendations ?

2012-07-18 Thread Erik Stainsby
End of thread. (Now looking for better indexed third party documentation…) On 2012-07-18, at 8:04 PM, Conrad Shultz wrote: > NSRegularExpression? > > (Sent from my iPhone.) > > -- > Conrad Shultz > > On Jul 18, 2012, at 19:59, Erik Stainsby wrote: > >> My project is going to require sever

Re: KVG generic enough?

2012-07-18 Thread Graham Cox
On 19/07/2012, at 1:33 AM, Alex Zavatone wrote: > Ah, yes, when coding, of course. For some reason, I was expecting that > during runtime/debugging, if you know the name of an object or you are > accessing a object your coworker wrote there was some concept that instantly > told you its class

Re: KVG generic enough?

2012-07-18 Thread Graham Cox
On 19/07/2012, at 9:46 AM, William Squires wrote: > Okay, but the problem with wrapped scalars is determining what went in (int, > float, char, BOOL) once you get it out (presumably as an NSNumber)? I suppose > one way would be to define a 'type' dictionary in the object whose properties > I'm

Re: KVG generic enough?

2012-07-18 Thread Quincey Morris
On Jul 18, 2012, at 20:31 , Graham Cox wrote: > However, I'm not sure whether, if you pass a string to -setValue:forKey: and > the property is numeric, whether a conversion to an NSNumber is done there, > or whether the object would just store the string. That might cause problems. If the prope

Re: KVG generic enough?

2012-07-18 Thread Graham Cox
On 19/07/2012, at 1:53 PM, Quincey Morris wrote: > (Hint: look up the documentation for -[NSString unsignedIntValue].) Yes, I see. :) In fact that's the second piece of not-quite-joined-up thinking I've found in Cocoa just today. Makes you wonder how often the members of the Cocoa dev teams

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
On 7/19/12 2:15 AM, Quincey Morris wrote: Oddly, the other operators (e.g. NSGreaterThanOrEqualToPredicateOperatorType) work fine. You might find a workaround using a combination of predicates using different operators. I'd be delighted if someone told me it's all my fault. Can anyone point out

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Quincey Morris
On Jul 18, 2012, at 23:22 , Markus Spoettl wrote: > That doesn't sound right. The array controller is used by views directly, > they bind to arrangedObjects (like in the example). Since when is it > recommended to insert an intermediate object between table view and > NSArrayController? Makes t

GCD question

2012-07-18 Thread Rick C.
Hi, If I use this to initiate a background "thread": dispatch_async(dispatch_get_global_queue(0, 0), ^{ // do some stuff [self runMyFunction]; [self runAnotherFunction]; // do some more stuff }); My question is with my sample calling runMyFunction or runAnotherFunction are they blocking?