Re: Capturing 'self' strongly in this block is likely to lead to a retain cycle

2012-07-10 Thread rols
On 09.07.2012, at 18:03, Fritz Anderson wrote: You can break this by having a strong reference to self that the block can manage independently. __block MyClass * blockSelf = self; [self.operationQueue addOperationWithBlock:^{ [blockSelf bar]; blockSelf = nil; }];

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Robert Monaghan
Ok, So in the meantime, I have a bunch of customers filing bugs/feature requests to implement this ability.. (Its a popular request, shall we say..) Is this something that can be overridden, turned on/off? Has anyone done this? Thanks! bob. On Jul 10, 2012, at 3:48 AM, Graham Cox wrote:

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Graham Cox
On 10/07/2012, at 4:37 PM, Robert Monaghan wrote: Ok, So in the meantime, I have a bunch of customers filing bugs/feature requests to implement this ability.. (Its a popular request, shall we say..) Is this something that can be overridden, turned on/off? Has anyone done this? I

Why would UIBarButtonItems simply not show up?

2012-07-10 Thread Gavin Stokes
I have a screen that can be flipped over to show a map, and from the map the user can invoke a detail controller for an item on the map. So I instantiate a navigation controller, make the map controller its root-view controller, and then invoke it: - (void)showMap { StashMapController*

Re: Why would UIBarButtonItems simply not show up?

2012-07-10 Thread Gavin Stokes
Ugh, never mind. The graphic files hadn't been added to the project. I would've expected a warning message to the console or a blank button, but got neither. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

cocoabuilder closed?

2012-07-10 Thread Chris Paveglio
Sorry, this is O.T. a little. Does anyone know what's going on with Cocoabuilder.com? I haven't been able to get there for more than a month, on work or on home computers. But Google shows a cached page with a recent date, which seems weird. Is there any other similar site to browse topics

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Keary Suska
On Jul 10, 2012, at 12:51 AM, Graham Cox wrote: On 10/07/2012, at 4:37 PM, Robert Monaghan wrote: Ok, So in the meantime, I have a bunch of customers filing bugs/feature requests to implement this ability.. (Its a popular request, shall we say..) Is this something that can be

Re: Capturing 'self' strongly in this block is likely to lead to a retain cycle

2012-07-10 Thread Fritz Anderson
On 9 Jul 2012, at 6:35 PM, Shane Stanley wrote: On 10/07/2012, at 2:03 AM, Fritz Anderson wrote: In practice, NSOperationQueue probably releases the block when it's done with it I'm curious about your use of the word probably here. Can you explain? The documentation for

Re: Capturing 'self' strongly in this block is likely to lead to a retain cycle

2012-07-10 Thread Jonathan Taylor
In practice, NSOperationQueue probably releases the block when it's done with it I'm curious about your use of the word probably here. Can you explain? This is probably not what the OP had in mind, but I might mention that I've seen situations where autoreleases associated with

MaxOS 10.7 full-screen animation corrupts my UI --- how to avoid?

2012-07-10 Thread Motti Shneor
Hello everyone. My main window restricts the user to a range of window sizes, using [myWindow setContentsMaxSize:maxSize] [myWindow setContentsMinSize:minSize] The minimum size prevents corruption of some complicated views loaded from several nib files. When the user presses fullscreen

Re: Bottom-edge constraint not enforced in IB but is in runtime?

2012-07-10 Thread Kevin Cathey
The default value of translatesAutoresizingMaskIntoConstraints for top level views in IB is YES on both Lion and Mountain Lion. But this can be disabled using the Attributes Inspector and uncheck Translates Mask Into Constraints Kevin On Jul 9, 2012, at 12:09 PM, Rick Mann

Re: Bottom-edge constraint not enforced in IB but is in runtime?

2012-07-10 Thread Marc Respass
Thanks a lot, Kevin. I didn't realize it was only for top-level objects; now I see it. It is correct that I should turn off translatesAutoresizingMaskIntoConstraints when using auto-layout? Thanks again Marc El jul 10, 2012, a las 11:01 a.m., Kevin Cathey escribió: The default value of

Re: Capturing 'self' strongly in this block is likely to lead to a retain cycle

2012-07-10 Thread David Duncan
On Jul 10, 2012, at 12:56 AM, Jonathan Taylor wrote: In practice, NSOperationQueue probably releases the block when it's done with it I'm curious about your use of the word probably here. Can you explain? This is probably not what the OP had in mind, but I might mention that I've seen

Re: Bottom-edge constraint not enforced in IB but is in runtime?

2012-07-10 Thread Kyle Sluder
On Tue, Jul 10, 2012, at 08:01 AM, Kevin Cathey wrote: The default value of translatesAutoresizingMaskIntoConstraints for top level views in IB is YES on both Lion and Mountain Lion. But this can be disabled using the Attributes Inspector and uncheck Translates Mask Into Constraints

Re: cocoabuilder closed?

2012-07-10 Thread Richard Altenburg (Brainchild)
I just tried the website and it seems to work, I searched for my own name and even found some posts I was not even aware from many years ago ;-) You could try to contact Bertrand Mansion, the site owner, on cocoabuil...@mamasam.com for questions about the status. [[[Brainchild alloc]

Re: cocoabuilder closed?

2012-07-10 Thread Andy Lee
I can get to the site but it doesn't seem to have been updated since June 25. --Andy On Jul 10, 2012, at 2:35 PM, Richard Altenburg (Brainchild) wrote: I just tried the website and it seems to work, I searched for my own name and even found some posts I was not even aware from many years ago

Re: Stupid block syntax!

2012-07-10 Thread Dave
On 9 Jul 2012, at 13:33, Vincent Habchi wrote: On 5 juil. 2012, at 02:45, Graham Cox graham@bigpond.com wrote: I read recently that the '^' was the only possible operator that could be used due to the inherent grammar of C meaning that anything else would have introduced ambiguity

Re: turning app into background app

2012-07-10 Thread Eric Schlegel
On Jul 9, 2012, at 11:55 AM, Ken Thomases k...@codeweavers.com wrote: Note that in 10.7 and later, you can use TransformProcessType to convert your app back into a background-only or UIElement app, as well. Fascinating. Does this apply to -[NSApplication setActivationPolicy:] as well?

Avoiding cyclic header imports

2012-07-10 Thread Erik Stainsby
I have two classes, and a model object - RSPlugin, RSExpression, and RSRule - which share the same data model. I have thought to have the classes provide a method which can be used to initialize the RSRule object so: RSRule * rule = [[RSRule alloc] init]; [rule loadFromPlugin: currentPlugin];

Re: Avoiding cyclic header imports

2012-07-10 Thread Jens Alfke
On Jul 10, 2012, at 5:01 PM, Erik Stainsby erik.stain...@roaringsky.ca wrote: where -[RSRule loadFromPlugin:] copies the values to the rule. This requires however that RSRule #imports the RSPlugin header. I also would like to maintain symmetry by having RSPlugin import the values of

-layout not called after invoking -setNeedsLayout:YES

2012-07-10 Thread Dave Keck
I'm overriding NSView's -layout method to arrange a grid of subviews. I call [gridView setNeedsLayout: YES] when a new subview is added, which usually results in -layout being called on gridView, but intermittently -layout is not called (resulting in incorrect subview positioning.) In contrast, I

Instance not responding to selector

2012-07-10 Thread Erik Stainsby
I have a set of plugins which I load via a custom framework. The plugins load and behave correctly in the UI. I have a set of corresponding rule objects, one for each class of plugin. A plugin may load data from a rule, and a rule may load data from a plugin: -[RSRule

Re: nstableview remove/insert rows question

2012-07-10 Thread Rick C.
Hi everyone, Can I bump this because I'm still stuck here. :-) And maybe I can ask in a new way here's what I'm trying to do: 1. Remove old rows from tableview (let's say 5) with sliding left animation 2. Update array being used as datasource (let's say now it contains 15 items) 3. Resize

Re: Instance not responding to selector

2012-07-10 Thread Jens Alfke
On Jul 10, 2012, at 9:03 PM, Erik Stainsby erik.stain...@roaringsky.ca wrote: 2012-07-10 20:42:39.792 Trixie[41453:303] -[RSReactionRule loadFromPlugin:]: unrecognized selector sent to instance 0x1018961b0 What does the implementation of the -loadFromPlugin: method in that class (or a

Re: Instance not responding to selector

2012-07-10 Thread Fritz Anderson
On 10 Jul 2012, at 11:03 PM, Erik Stainsby wrote: Any advice on how I could narrow down what is causing this? I have tried using repondsToSelector: but this doesn't do anything but confirm what the error message states, that the selector is not recognized. More than that, it states that