setting tab stops in a document

2010-06-04 Thread Boyd Collier
In an application I'm working on, I read in plain text files containing data to be analyzed. This uses a slightly-modified version of MyDocument.m that is produced as a result of starting a project with the template for NSDocument architecture. The modification that I made was to add a method

detecting touch and hold vs touch in UIButton

2010-06-04 Thread Alejandro Marcos Aragón
Hi all, I've been trying to detect touch and hold vs touch on a subclass of UIButton. I basically accomplished that by doing the following: I first add the following when the button is created: [button addTarget:self action:@selector(sourceSelected:) forControlEvents:UI

Re: icon sizes

2010-06-04 Thread Ken Ferry
On Fri, Jun 4, 2010 at 2:39 PM, Jens Alfke wrote: > > On Jun 3, 2010, at 10:01 PM, Shane wrote: > > > I'm going to have some icons made for my app, and I'm wondering to > > what size they should be made. > > For app and document icons: 512x512 is the maximum icon size on 10.6. If > you make an ic

Forcing IKImageBrowserView to center its cells?

2010-06-04 Thread Nick Zitzmann
I RTFM'd and STFW'd but could not find an answer to my question. How do I make IKImageBrowserView **always** center its cells horizontally? I noticed it only normally does this if there are two or more rows, and left-justifies the cells if there is only one row. I'd like to center the cells on t

Re: icon sizes

2010-06-04 Thread Jens Alfke
On Jun 3, 2010, at 10:01 PM, Shane wrote: > I'm going to have some icons made for my app, and I'm wondering to > what size they should be made. For app and document icons: 512x512 is the maximum icon size on 10.6. If you make an icon smaller than that, it will show up pixelated and blurry in th

Re: va_list and unanticipated format specifiers

2010-06-04 Thread jonat...@mugginsoft.com
On 4 Jun 2010, at 22:22, Ken Thomases wrote: > > The compiler will actually find this for you. Enabling -Wformat (which is > included in -Wall) issues warnings for functions and methods that take format > strings if you supply a non-literal format argument and no arguments. If you > supply

Re: va_list and unanticipated format specifiers

2010-06-04 Thread Ken Thomases
On Jun 4, 2010, at 8:34 AM, jonat...@mugginsoft.com wrote: > Thanks for persisting Ken. You're welcome. > In general it would seem that when a method/function has format + va_list > signature > invocations should not contain single variable argument lists. > The following regex is reasonably

Re: Newbie Question re: callback signatures

2010-06-04 Thread Quincey Morris
On Jun 4, 2010, at 13:03, Brad Stone wrote: > How do I create the callback method? I don't understand what the signature > is telling me. I have > canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: in my > NSDocument and I want to set up the callback method. When I create a method

Re: Class OC_PythonObject: no such selector: _cfTypeID

2010-06-04 Thread jonat...@mugginsoft.com
Hi Hamish On 4 Jun 2010, at 20:40, has wrote: > Jonathan Mitchell wrote: > >> On occasion I see my PyObjC scripts generating the following: >> >> Class OC_PythonObject: no such selector: _cfTypeID >> >> My app executes user supplied scripts and the error appears to be generated >> under a num

Newbie Question re: callback signatures

2010-06-04 Thread Brad Stone
How do I create the callback method? I don't understand what the signature is telling me. I have canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: in my NSDocument and I want to set up the callback method. When I create a method as below it never fires. I must just not be readin

Re: Class OC_PythonObject: no such selector: _cfTypeID

2010-06-04 Thread has
Jonathan Mitchell wrote: > On occasion I see my PyObjC scripts generating the following: > > Class OC_PythonObject: no such selector: _cfTypeID > > My app executes user supplied scripts and the error appears to be generated > under a number of circumstances > including inadvertently calling an

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread glenn andreas
On Jun 4, 2010, at 11:53 AM, ico wrote: > Hi all, > > I have created a custom view in the Interface Builder, how can I specify the > superview for this custom view? For example, > I want to make its superview be UIWindow rather than another custom view. Then drag a UIWindow from the library and

Re: How to specify the superview in the Interface Builder?

2010-06-04 Thread jeremy
Would you provide some additional information: 1) Is the IB designed custom view in MainWindow.xib or is it in its own nib file? 2) Did you create a custom view controller class to manage the screen full of content shown in the custom view? On Jun 4, 2010, at 12:53 PM, ico wrote: > I have cr

How to specify the superview in the Interface Builder?

2010-06-04 Thread ico
Hi all, I have created a custom view in the Interface Builder, how can I specify the superview for this custom view? For example, I want to make its superview be UIWindow rather than another custom view. Thanks. ico == Life isn't about finding yourself. Life is about crea

Re: [SOLVED] Delayed -dealloc occurs on worker thread if object is "working".

2010-06-04 Thread Michael Ash
On Fri, Jun 4, 2010 at 11:27 AM, Jerry Krinock wrote: > > On 2010 Jun 02, at 10:48, BJ Homer wrote: > >> detachNewThreadSelector:target:withObject: retains both the target and the >> object. > > Thank you, BJ.  That explains everything. > > On 2010 Jun 02, at 11:12, Jens Alfke wrote: > >> It’s re

Re: [SOLVED] Delayed -dealloc occurs on worker thread if object is "working".

2010-06-04 Thread Jerry Krinock
On 2010 Jun 02, at 10:48, BJ Homer wrote: > detachNewThreadSelector:target:withObject: retains both the target and the > object. Thank you, BJ. That explains everything. On 2010 Jun 02, at 11:12, Jens Alfke wrote: > It’s really not a good idea to obsess over the details of when objects get

Class OC_PythonObject: no such selector: _cfTypeID

2010-06-04 Thread jonat...@mugginsoft.com
On occasion I see my PyObjC scripts generating the following: Class OC_PythonObject: no such selector: _cfTypeID My app executes user supplied scripts and the error appears to be generated under a number of circumstances including inadvertently calling an object function with the wrong number o

Re: va_list and unanticipated format specifiers

2010-06-04 Thread jonat...@mugginsoft.com
On 4 Jun 2010, at 00:49, Ken Thomases wrote: > On Jun 3, 2010, at 8:46 AM, jonat...@mugginsoft.com wrote: > >> My app runs user supplied scripts. >> >> These scripts may contain RubyCocoa statements such as: >> OSX::NSLog("task parameters are %@ and %@", a, b) >> >> These scripts may contain e