Array Controller "Select Inserted Objects" just stopped working

2009-12-05 Thread Jerry Krinock
I tested a new build of an app today and found that, all of a sudden, clicking the "+" button for a table view adds a new object but no longer selects it. It's a conventional design with the "+" button targetting the -add: method of an array controller instantiated in the nib, and the table bou

Re: Question about aliasing (analog clock hands)

2009-12-05 Thread Scott Anguish
not sure if this is helpful, but on http://www.abandoninplace.com/ in SampleCode, there is an example of using a dial created with Core Animation. On Dec 3, 2009, at 3:34 PM, Eric E. Dolecki wrote: > Will do. One question - when I am rotating around z - it's using the top > left of the shapeLaye

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Frederik Slijkerman
The usual solution is to change the method signature to accept a CGPoint* argument instead, so you can also pass NULL / nil separately from any point. Best regards, Frederik Slijkerman Chunk 1978 wrote: i have an method that takes a CGPoint as an argument. i would like to call the method wi

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Chunk 1978
the method that takes the CGPoint argument is called from touchesBegan and touchesMoved. the CGPoint method outputs touch coordinates and the touches only register if the touch is within the frame of the image. for factoring purposes i want to be able to call the same method from touchesEnded tha

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Dave DeLong
Anything you pass can be interpreted as a point. You could pass an NSString, but those are still pointers, and you can interpret a pointer as a regular number. You could pass a character, but characters are also numbers. In fact, everything in C can be interpreted as a number (this is often v

Re: passing nothing to method with CGPoint argument

2009-12-05 Thread Graham Cox
On 06/12/2009, at 12:59 PM, Chunk 1978 wrote: > i have an method that takes a CGPoint as an argument. i would like to > call the method without supplying a CGPoint, but i can't pass nil or > null. i can pass CGPointZero, but that is still a point: {0, 0} Why would you want to do this? It just

passing nothing to method with CGPoint argument

2009-12-05 Thread Chunk 1978
i have an method that takes a CGPoint as an argument. i would like to call the method without supplying a CGPoint, but i can't pass nil or null. i can pass CGPointZero, but that is still a point: {0, 0} ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

NSPopUpButton questions

2009-12-05 Thread timm...@gmail.com
The Apple docs for NSPopUpButtons says to avoid accessing it's NSMenu directly because it may need to do housekeeping. I had to access it's NSMenu directly though so that I could make a separator menu item. Is this fine for this situation, or is there a better way to do this to conform to Apple'

Re: -[NSCFData count]: unrecognized selector

2009-12-05 Thread PCWiz
You were right on with number 1, the exception was in a line of code where I tried to use NSMutableArray +arrayWithArray on an NSData object rather than an NSArray. Fixed this blunder and everything works as it should. I'm guessing what happened here is that some part of the +arrayWithArray meth

Re: -[NSCFData count]: unrecognized selector

2009-12-05 Thread Mike Abdullah
Reasons this could be happening: 1) The exception is actually in a completely different place 2) _arrayController does not point to what you think it does. Could perhaps be a freed object since replaced with something else that returns a data object for -arrangedObjects 3) The array controller i

Re: -[NSCFData count]: unrecognized selector

2009-12-05 Thread Seth Willits
On Dec 5, 2009, at 4:23 PM, PCWiz wrote: > I'm having an *extremely* strange problem here. I'm using this simple if > statement to find out if an array controller is not empty: > > if ([[_arrayController arrangedObjects] count] > 0) > > And this is what it results in: > > -[NSCFData count]: un

Re: An array of

2009-12-05 Thread Seth Willits
On Dec 5, 2009, at 4:10 PM, R T wrote: > I am trying to create an array of CGImageRefs that I will use to create > CGLayers. > myCGImageRefImage is the CGImageRef of the key image. > Each loop, I'm trying to reload imgForLayer with this key image. > The line...imgForLayer = CGImageCreateCopy(my

-[NSCFData count]: unrecognized selector

2009-12-05 Thread PCWiz
I'm having an *extremely* strange problem here. I'm using this simple if statement to find out if an array controller is not empty: if ([[_arrayController arrangedObjects] count] > 0) And this is what it results in: -[NSCFData count]: unrecognized selector sent to instance 0x134d010 If I take

An array of

2009-12-05 Thread R T
I am trying to create an array of CGImageRefs that I will use to create CGLayers. myCGImageRefImage is the CGImageRef of the key image. Each loop, I'm trying to reload imgForLayer with this key image. The line...imgForLayer = CGImageCreateCopy(myCGImageRefImage) ...doesn't work at all. Given:

/System/.../pbs -dump_pboard gives no output

2009-12-05 Thread John Velman
When I invoke /System/Library/CoreServices/pbs -dump_pboard from a terminal, about 5 seconds elapses before I get the prompt back, but no list of registered Services is returned. But in any application (e.g, Finder), there are thirty some services listed on the service menu. This may not be the r

Re: Is it possible to pass an object to a NIB

2009-12-05 Thread Chris Hanson
On Dec 5, 2009, at 3:46 PM, DeNigris Sean wrote: >> Furthermore, from your further description it sounds like what you’re >> referring to as a “view” is actually a subclass of NSWindowController; it >> knows how to load a nib file already, so you should just leverage that >> rather than try to

Re: Is it possible to pass an object to a NIB

2009-12-05 Thread DeNigris Sean
> Really, the external name table is for referring to objects in nibs, rather > than pushing objects into nibs. Thanks. That's what I wanted to know - I thought the docs suggested maybe you could pass objects in (other than owner) > Furthermore, from your further description it sounds like what

Re: NSOutlineView expand-by-default with NSTreeController

2009-12-05 Thread Jason Foreman
On Dec 5, 2009, at 12:43 PM, Benjamin Rister wrote: > I have an NSOutlineView in which I would like to have newly-appearing items > be expanded by default. (It would be nice if NSOutlineView had support for > this built in; rdar://problem/7421928.) > > The list archives and a web search reveal

[iPhone] Add a UIProgressView as subview to a navigationController

2009-12-05 Thread Philip Vallone
Hi list, Is it possible to add a UIProgressView as subview to a navigationController? I am trying the below example, but it does not show up. I suspect my UIProgressView is out of view... UIProgressView *progbar = [[UIProgressView alloc] initWithFrame:

Re: Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
i figured it out. alexander, this would have been more helpful: http://tinyurl.com/yjpeljv On Sat, Dec 5, 2009 at 2:42 PM, Chunk 1978 wrote: > thanks for teaching me how to use google.  huge help. > > unfortunately, since i've imported both UIKit and my controller class > into my custom UIImageV

Re: Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
thanks for teaching me how to use google. huge help. unfortunately, since i've imported both UIKit and my controller class into my custom UIImageView class, my question is wasn't what does that error mean, but why am i receiving it. On Sat, Dec 5, 2009 at 6:45 AM, Alexander Spohr wrote: > http:

NSOutlineView expand-by-default with NSTreeController

2009-12-05 Thread Benjamin Rister
I have an NSOutlineView in which I would like to have newly-appearing items be expanded by default. (It would be nice if NSOutlineView had support for this built in; rdar://problem/7421928.) The list archives and a web search reveal a couple hacks to try and make this work, but they depend on f

Re: Run Javascript Function in iPhone App

2009-12-05 Thread Izidor Jerebic
Hi, this has nothing to do with javascript. Your problem is how to get the string out of UITextField. 'sender' is UITextField, which does not have the method -stringValue like NSTextField. Look at the documentation of UITextField. You should use property 'text' instead. izidor P.S. You

Re: Is it possible to pass an object to a NIB

2009-12-05 Thread Ken Thomases
On Dec 4, 2009, at 9:47 PM, DeNigris Sean wrote: I'm trying to unit test a view class. As it is very thin (just delegates all work to the controller), all I want to check is that my connections (e.g. outlets and actions) are hooked up correctly. I've been trying to: 1. Create an instance o

Re: Lan/Airport Notification

2009-12-05 Thread Bill Garrison
On Dec 3, 2009, at 2:24 PM, Jens Alfke wrote: On Dec 3, 2009, at 9:02 AM, Stefan Lehrner wrote: is it possible to get notified when Airport or Lan is available? I wonder how I can be notified by the system whenever my Airport goes online or when my Lan Connection will be established? S

Re: NSTextView & Horizontal Scrollbar bug

2009-12-05 Thread Eric Gorr
On Dec 4, 2009, at 12:30 PM, Ross Carter wrote: > On Dec 4, 2009, at 9:29 AM, Eric Gorr wrote: > >> I've got a sample application at >> http://ericgorr.net/cocoadev/TextViewNoWrap.zip which demonstrates the >> problem I am seeing. >> >> Basically, there is just a text view on a window with a h

Re: Programatically Setting Delegate

2009-12-05 Thread Alexander Spohr
http://lmgtfy.com/?q=error+request+for+member+is+something+not+a+structure+of+union atze Am 05.12.2009 um 09:12 schrieb Chunk 1978: > i have a UIViewController that i'm setting as the delegate for my > custom UIImageView class. from my custom UIImageView class i want the > delegate to

Programatically Setting Delegate

2009-12-05 Thread Chunk 1978
i have a UIViewController that i'm setting as the delegate for my custom UIImageView class. from my custom UIImageView class i want the delegate to change it's background color (based on computations performed within the UIImageView class). in my UIViewController i write: – myUIImageViewClass

How to determine the type of a motherboard controller

2009-12-05 Thread Zephyroth Akash
Hi, First I apologize if it's not the right list to ask this question. How do I get the class-code definition of a motherboard controller ? All I can do right now is to retrieve the value of this key using IOKit but where this code is defined ? For example, it's seems that audio controller