Tab Bar Item naming convention?

2012-07-05 Thread Laurent Daudelin
I've read all the documentation about the subject, did google everything I could think of, but I still don't know how to name tab bar item icons. The documentation recommends a standard icon of 20 x 20 and a high resolution one at 40 x 40. But, do I follow the same naming convention as for the a

Re: Is this an incorrect use of categories ?

2012-07-05 Thread Graham Cox
On 06/07/2012, at 1:54 PM, Erik Stainsby wrote: > Is it sufficient that the categories be loaded in the windowController code? > Or do they need to be available in the framework context in which the plugins > are actually loaded from nib? That is, my categories are being added in the > app no

Re: Is this an incorrect use of categories ?

2012-07-05 Thread Erik Stainsby
Thanks for the reply Graham. The categories are loaded in a window controller which serves as the context for the plugins. The plugins are loaded with a convenience method from my framework, which uses NSBundle loading techniques. Is it sufficient that the categories be loaded in the windowCont

Re: Is this an incorrect use of categories ?

2012-07-05 Thread Graham Cox
On 06/07/2012, at 12:50 PM, Erik Stainsby wrote: > However, I am getting an "unrecognized selector sent to instance > 0xyaddayadda" when I try to run this. I know the selector does exist, so I > must have a scoping issue (?) At run-time, if the target object implements the selector (whether

Re: Modal event processing

2012-07-05 Thread Yingshen Yu
Are you trying to mimic user interactions with Cocoa UI? If I understand you right, it might be easier to do it with accessibility API, so you can write a normal Cocoa App and a write another app to mimic user interaction to this cocoa app. -Jonny 在 2012-7-6,上午3:57,Charlie Dickman <3tothe...@

Is this an incorrect use of categories ?

2012-07-05 Thread Erik Stainsby
Greetings list, My project employs a framework which loads several plugins. When the user interacts with these plugins s/he generates an intermediate abstraction of the plugin contents which I refer to as a rule. The rule abstraction exists to facilitate round-tripping back to the plugin of or

Re: Modal event processing

2012-07-05 Thread Graham Cox
On 06/07/2012, at 11:29 AM, Charlie Dickman wrote: > Correct, by your say so, or not if the timers don't drive the program it just > sits there and does nothing. Human intervention is required to configure it > or cause it to quit. What are you trying to DO? There's nothing wrong with using

Window-Frame Controls in Lion

2012-07-05 Thread Richard Somers
Controls in the window-frame area (that is, in the toolbar or bottom bar) normally have a textured style as stated in the OS X Human Interface Guidelines. In 10.7 Lion textured controls became semi-transparent with some of the background showing through. This results in most window-frame control

Re: Modal event processing

2012-07-05 Thread Charlie Dickman
Correct, by your say so, or not if the timers don't drive the program it just sits there and does nothing. Human intervention is required to configure it or cause it to quit. On Jul 5, 2012, at 8:24 PM, Graham Cox wrote: > > On 06/07/2012, at 5:57 AM, Charlie Dickman wrote: > >> I have a demo

Re: Modal event processing

2012-07-05 Thread Graham Cox
On 06/07/2012, at 5:57 AM, Charlie Dickman wrote: > I have a demonstration app that is basically operating on a 0.15 second timer > loop. The problem I am having is that even with a periodic timer going off it > is very difficult to get menu events and mouse clicks in window controls > through

Modal event processing

2012-07-05 Thread Charlie Dickman
I have a demonstration app that is basically operating on a 0.15 second timer loop. The problem I am having is that even with a periodic timer going off it is very difficult to get menu events and mouse clicks in window controls through to be processed. I have tried setting up an additional flow

Re: Dynamic modification of text search results

2012-07-05 Thread Martin Wierschin
> Regarding the other solution--just do another search when the text > changes--you only have to search the range that was changed, not the entire > text storage, right? That doesn't seem like it would be too ungainly. Not too ungainly, no. But then you're maintaining the matches in an external

Re: Dynamic modification of text search results

2012-07-05 Thread Martin Hewitson
Thank you all for the ideas and input. In the end the text attachment idea works perfectly. There's only one additional feature that would be nice: if a search result is deleted from the textview (which means the attachment is deleted) it would be nice to update the list of search results to rem

Re: Stupid block syntax!

2012-07-05 Thread Greg Parker
On Jul 5, 2012, at 9:40 AM, Sean McBride wrote: > On Thu, 5 Jul 2012 10:45:57 +1000, Graham Cox said: >> 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. > > IIRC, the

Re: Crash when calling va_arg()

2012-07-05 Thread Greg Parker
On Jul 4, 2012, at 5:44 PM, Fritz Anderson wrote: > On 4 Jul 2012, at 7:40 PM, Charles Srstka wrote: >> Neither method is much foolproof at all — both of them can easily be >> undermined by even low-level fools. > > … as witness the dozens of times a year I crash because I forgot to terminate >

Re: Stupid block syntax!

2012-07-05 Thread Sean McBride
On Thu, 5 Jul 2012 10:45:57 +1000, Graham Cox said: >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. IIRC, the other reason was for Objective-C++. I think ^ is one of the

Re: properties and subclasses

2012-07-05 Thread Preston Sumner
On Jul 5, 2012, at 9:56 AM, James Maxwell wrote: > Okay, thanks. That seems reasonable, but I wanted to double-check. I remember > reading some discussion a while ago that seemed to suggest that dot syntax > was only for calling synthesized properties, not methods… Though precisely > what a syn

Re: NSInteger vs int vs int32_t

2012-07-05 Thread Scott Ribe
On Jul 5, 2012, at 9:38 AM, Jens Alfke wrote: > And the real point in this discussion: Just like with VM but on a smaller > scale, the better your working set of data fits into the CPU cache, the > faster your code will run. And the cache will, obviously, hold twice as many > int32_t's as it wi

Re: properties and subclasses

2012-07-05 Thread James Maxwell
Okay, thanks. That seems reasonable, but I wanted to double-check. I remember reading some discussion a while ago that seemed to suggest that dot syntax was only for calling synthesized properties, not methods… Though precisely what a synthesized property would be, other than an accessor method

Re: properties and subclasses

2012-07-05 Thread Graham Cox
On 06/07/2012, at 1:25 AM, James Maxwell wrote: > With this setup, when I call mySubclassThing.aProp, do I get the synthesized > property (inherited) or the overridden method return? That is, do I have to > deliberately call [mySubclassThing aProp] to get the method return (i.e., not > using d

Re: properties and subclasses

2012-07-05 Thread Jens Alfke
On Jul 5, 2012, at 8:25 AM, James Maxwell wrote: > I have a situation where I've created a subclass that overrides a number of > synthesized property accessors in its superclass. What I'm wondering is > whether the overridden methods will get called when using dot syntax, or if > this will jus

Re: NSInteger vs int vs int32_t

2012-07-05 Thread Jens Alfke
On Jul 4, 2012, at 10:41 PM, Nathan Day wrote: > It must if 64bits is read in that mean you have just read in two 32bit words. > So to put a 32bit word in a 64bit register some bit must be ditched, in some > way, and if the CPU is optimise to only work with 64bit word alignment (don't > know h

properties and subclasses

2012-07-05 Thread James Maxwell
I have a situation where I've created a subclass that overrides a number of synthesized property accessors in its superclass. What I'm wondering is whether the overridden methods will get called when using dot syntax, or if this will just return the (inherited) synthesized properties? So the "T

Re: NSInteger vs int vs int32_t

2012-07-05 Thread Scott Ribe
On Jul 4, 2012, at 11:41 PM, Nathan Day wrote: > It must if 64bits is read in that mean you have just read in two 32bit words. > So to put a 32bit word in a 64bit register some bit must be ditched, in some > way, and if the CPU is optimise to only work with 64bit word alignment (don't > know ho