Re: Crash when using TableView in View managed by TabController

2009-07-19 Thread Trygve Inda
> I have a TabBarController that has three tabs, and each view for these is > kept in its own nib. One of these views has a UITableView which has its > delegate and dataSource attached to the File's Owner. > > The nib also has TableCell objects which are returned from: > > - (UITableViewCell *)ta

Mouse move messages sent to both superview and a subview

2009-07-19 Thread Oleg Krupnov
I want to display one view on top on the other view, so according to the documentation, I nest the topmost view inside the background view. It works just fine except that the mouse move messages are sent to both the subview and the superview, whereas I'd like them to be directed only to the subvie

Re: Ideas required on testing an application install

2009-07-19 Thread Ian Piper
On 26 Jun 2009, at 5:30am, Bill Bumgarner wrote: It'll be interested to see what kind of performance one achieves when booting from an SD card. Given their price ($40 for a class-6 SDHC card), it would be an attractive and convenient option. Certainly, I know that when I have a moment, I'm

Re: [IB] - how to delete action or outlet?

2009-07-19 Thread Graham Cox
On 18/07/2009, at 4:32 PM, Alexander Bokovikov wrote: Nice! And how to remove that action or at least how to rename it? For example I've done it by mistake, for testing or similar purposes. Now I can't remove such action or outlet, though I've closed IB, removed the action from the source

Re: NSDocument Enabling and handling menu items without implementing the action method in the document class

2009-07-19 Thread Graham Cox
On 19/07/2009, at 10:06 PM, Eyal Redler wrote: This works fine but it requires me to write an annoying amount such glue code every time I add an action so I'm looking for a better way to do this. Is it possible to further delegate the action methods and menu validation from the NSDocument

NSDocument Enabling and handling menu items without implementing the action method in the document class

2009-07-19 Thread Eyal Redler
Hi, In the document based application I'm working on I have a lot of methods in the document class which simply pass a command to some internal object. This requires me do do the following in my NSDocument subclass: - (BOOL)validateMenuItem:(NSMenuItem *)item { SEL action = [item acti

Re: iPhone runtime browser.

2009-07-19 Thread Nicolas Seriot
Le 18 juil. 09 à 11:25, John C. Randolph a écrit : For anyone who hasn't done it themselves already, I just wrote up a little Cocoa touch app that shows you all the classes in the objective-C runtime. No point in submitting it to the app store, but if anyone would like a copy, drop me a no

Re: [IB] - how to delete action or outlet?

2009-07-19 Thread Alexander Bokovikov
On 19.07.2009, at 18:05, Graham Cox wrote: Delete the actions/outlets from the source file, save, and in IB they'll show up with a yellow colour and a 'x' in the list views (right-click on the target object to show the HUD view of the connections). Then clicking the yellow x deletes the ph

Re: [IB] - how to delete action or outlet?

2009-07-19 Thread Graham Cox
On 19/07/2009, at 10:46 PM, Alexander Bokovikov wrote: On 19.07.2009, at 18:05, Graham Cox wrote: Delete the actions/outlets from the source file, save, and in IB they'll show up with a yellow colour and a 'x' in the list views (right-click on the target object to show the HUD view of the

How to intercept/reroute API call in loaded plugin?

2009-07-19 Thread Alexander Bokovikov
I'm sorry, if it's offtopic here, then please tell me, what should be correct list. The problem is the next. I'm working on a Cocoa app, playing Flash content from a specially structured files. The problem with SWF playback is (as I believe) is resolved by movie loading from memory rather

Re: [IB] - how to delete action or outlet?

2009-07-19 Thread Alexander Bokovikov
On 19.07.2009, at 19:11, Graham Cox wrote: So, have you tried what I suggested? Right-click on the target object that you've changed *in the main view*. In the HUD window that pops up, look for yellow text with a 'x' button. Click it to delete. This should update what you are seeing in t

Re: Custom NSArrayController - Dynamic Class?

2009-07-19 Thread BJ Homer
On Jul 18, 2009, at 11:52 PM, BJ Homer wrote: On Sat, Jul 18, 2009 at 4:23 PM, Quincey Morris > wrote: On Jul 18, 2009, at 15:07, Kyle Sluder wrote: I would instead recommend using -setValue:forKey: like this: [object setValue:[NSNumber numberWithInteger:[[self arrangedObjects] indexOfOb

Re[2]: Ideas required on testing an application install

2009-07-19 Thread Peter Mulholland
Hello Ian, Sunday, July 19, 2009, 12:45:50 PM, you wrote: > On 26 Jun 2009, at 5:30am, Bill Bumgarner wrote: >> It'll be interested to see what kind of performance one achieves >> when booting from an SD card. Given their price ($40 for a class-6 >> SDHC card), it would be an attractive and

Re: Custom NSArrayController - Dynamic Class?

2009-07-19 Thread Kyle Sluder
On Jul 18, 2009, at 11:52 PM, BJ Homer wrote: Actually, use [object setIndex:] instead, and cast it as an IndexedObject*. That will get rid of your compiler warnings. -BJ We're talking about the case in which you don't have a managed object subclass, and therefore there is nothing to cas

View in Tab can't reference parent controller (iPhone)

2009-07-19 Thread Trygve Inda
I have an AppController in my main nib. Also in this nib is a TabBarController and several custom subclasses of UIViewController. The TabBarController manages the custom subclasses of UIViewController. However, these subcalsses need to be able to get back to the AppController . So for each subcla

Re: Ideas required on testing an application install

2009-07-19 Thread Andy Lee
On Jul 19, 2009, at 7:45 AM, Ian Piper wrote: How do you get the SD card to act as a bootable drive? Did you try Google? A search for "boot sd card macbook" turned up this as the first hit: D

Re: Ideas required on testing an application install

2009-07-19 Thread Ian Piper
On 19 Jul 2009, at 6:46pm, Andy Lee wrote: On Jul 19, 2009, at 7:45 AM, Ian Piper wrote: How do you get the SD card to act as a bootable drive? Did you try Google? A search for "boot sd card macbook" turned up this as the first hit:

Changing the background of a NSScrollView

2009-07-19 Thread Richard Bannister
Folks I'm trying to draw into the background of a NSScrollView - specifically I have custom content I want to fill up the space with other than a solid colo(u)r. I'm slightly at a loss as to how to do this. Has anyone solved this problem already? Thanks in advance. Richard

Re: NSDocument Enabling and handling menu items without implementing the action method in the document class

2009-07-19 Thread Jerry Krinock
On 2009 Jul 19, at 05:46, Graham Cox wrote: use invocation forwarding. You need to override the following NSObject methods: - (NSMethodSignature *) methodSignatureForSelector:(SEL) aSelector; - (BOOL)respondsToSelector:(SEL) aSelector; - (void)forwardInvocatio

Re: Changing the background of a NSScrollView

2009-07-19 Thread Quincey Morris
On Jul 19, 2009, at 12:43, Richard Bannister wrote: I'm trying to draw into the background of a NSScrollView - specifically I have custom content I want to fill up the space with other than a solid colo(u)r. I'm slightly at a loss as to how to do this. Has anyone solved this problem alrea

Re: View in Tab can't reference parent controller (iPhone)

2009-07-19 Thread Quincey Morris
On Jul 19, 2009, at 10:38, Trygve Inda wrote: I have an AppController in my main nib. Also in this nib is a TabBarController and several custom subclasses of UIViewController. The TabBarController manages the custom subclasses of UIViewController. However, these subcalsses need to be able t

Re: Ideas required on testing an application install

2009-07-19 Thread Steve Christensen
On Jul 19, 2009, at 12:24 PM, Ian Piper wrote: On 19 Jul 2009, at 6:46pm, Andy Lee wrote: On Jul 19, 2009, at 7:45 AM, Ian Piper wrote: How do you get the SD card to act as a bootable drive? Did you try Google? A search for "boot sd card macbook" turned up this as the first hit:

Re: Custom NSArrayController - Dynamic Class?

2009-07-19 Thread BJ Homer
On Jul 19, 2009, at 11:21 AM, Kyle Sluder wrote: On Jul 18, 2009, at 11:52 PM, BJ Homer wrote: Actually, use [object setIndex:] instead, and cast it as an IndexedObject*. That will get rid of your compiler warnings. -BJ We're talking about the case in which you don't have a managed ob

Re: Ideas required on testing an application install

2009-07-19 Thread Andy Lee
On Jul 19, 2009, at 3:24 PM, Ian Piper wrote: Yes, I set it to GUID. It wouldn't even install on the SD card until I did that. I'm afraid I don't know the procedure for submitting a bug - presumably you mean to Apple? Yup, http://bugreport.apple.com. Maybe it's a Snow Leopard thing? Have

RE: Core Data design patterns

2009-07-19 Thread Squ Aire
Thanks for these wonderful answer and tips. I like how you have designed this stuff. Gladly, it is similar to what I've been doing. Based on this I can now refine my own stuff, e.g. by doing a subclass for each entity like you are doing. Two more things though: * About your error handling, h

Re: Custom NSArrayController - Dynamic Class?

2009-07-19 Thread Kyle Sluder
On Jul 19, 2009, at 1:52 PM, BJ Homer wrote: Oh, right. Cast it to (id) then. Though if it's already passed in as an id, that's obviously unnecessary. Point is, calling setIndex: instead of object.index= will let it compile w/o warnings, in certain situations. Except the compiler needs a

Re: Core Data design patterns

2009-07-19 Thread Jerry Krinock
On 2009 Jul 19, at 13:59, Squ Aire wrote: Thanks for these wonderful answer and tips. I like how you have designed this stuff. Gladly, it is similar to what I've been doing. Based on this I can now refine my own stuff, e.g. by doing a subclass for each entity like you are doing. Don't ge

Re: iPhone runtime browser.

2009-07-19 Thread John C. Randolph
On Jul 19, 2009, at 5:33 AM, Nicolas Seriot wrote: There is also another iPhone runtime browser: http://code.google.com/p/runtimebrowser/ Here is what it dumps on iPhone OS 3.0: http://seriot.ch/resources/dynamic_iPhone_headers/3_0/ Looks like they got rather more elaborate about it than I

popup in table column

2009-07-19 Thread Daniel Child
I am confused by what seem to be two possible approaches to placing popup button cells into a table. If I understand the documentation, one can: a) set the popup button cell as the data cell of the (subclassed) column OR b) return the popup button cell in the table datasource method: - (id)

"intelligent" flexible popup

2009-07-19 Thread Daniel Child
As a follow-up to the previous question on popups in a table, I am wondering what APIs you can use to implement the kind of "intelligent" popups one finds, for example, when filling out the State field in forms needing an address. You start typing "Ma" and Maine or Maryland come up. But you

Re: popup in table column

2009-07-19 Thread I . Savant
On Jul 19, 2009, at 7:38 PM, Daniel Child wrote: I am confused by what seem to be two possible approaches to placing popup button cells into a table. If I understand the documentation, one can: a) set the popup button cell as the data cell of the (subclassed) column OR b) return the pop

Re: "intelligent" flexible popup

2009-07-19 Thread I. Savant
On Jul 19, 2009, at 7:43 PM, Daniel Child wrote: As a follow-up to the previous question on popups in a table, I am wondering what APIs you can use to implement the kind of "intelligent" popups one finds, for example, when filling out the State field in forms needing an address. You start t

Re: "intelligent" flexible popup

2009-07-19 Thread Quincey Morris
On Jul 19, 2009, at 16:43, Daniel Child wrote: As a follow-up to the previous question on popups in a table, I am wondering what APIs you can use to implement the kind of "intelligent" popups one finds, for example, when filling out the State field in forms needing an address. You start typ

Re: "intelligent" flexible popup

2009-07-19 Thread I. Savant
On Jul 19, 2009, at 7:58 PM, Quincey Morris wrote: ... and you'd *still* have to prevent the table view from treating [NSComboBoxCell] like a text field. In what way? Are you referring to the fact that a menu can represent an object, whereas a combo box is just a (possibly-pre-baked-ch

Re: Core Data design patterns

2009-07-19 Thread mmalc Crawford
On Jul 19, 2009, at 3:15 PM, Jerry Krinock wrote: The case in point here is that -[NSManagedObjectContext executeFetchRequest:error:] returns an NSError if something goes wrong. This is misleading. The fundamental behaviour is that method returns NO if something goes wrong. In addition

Re: Core Data design patterns

2009-07-19 Thread mmalc Crawford
On Jul 19, 2009, at 1:59 PM, Squ Aire wrote: * Finally an unrelated and basic Core Data question: Where do you paste the code you copy using the "Copy Method Declarations/ Implementations" feature in the data modeling tool? I really want to use those things because it is, according to docs,

Re: "intelligent" flexible popup

2009-07-19 Thread Quincey Morris
On Jul 19, 2009, at 17:05, I. Savant wrote: On Jul 19, 2009, at 7:58 PM, Quincey Morris wrote: ... and you'd *still* have to prevent the table view from treating [NSComboBoxCell] like a text field. In what way? Are you referring to the fact that a menu can represent an object, whereas

Re: NSDocument Enabling and handling menu items without implementing the action method in the document class

2009-07-19 Thread Eyal Redler
Thank you very much Graham! Looks just like what I was looking for. Eyal On Jul 19, 2009, at 3:46 PM, Graham Cox wrote: On 19/07/2009, at 10:06 PM, Eyal Redler wrote: This works fine but it requires me to write an annoying amount such glue code every time I add an action so I'm looking fo

Re: "intelligent" flexible popup

2009-07-19 Thread Gregory Weston
Daniel Child wrote: As a follow-up to the previous question on popups in a table, I am wondering what APIs you can use to implement the kind of "intelligent" popups one finds, for example, when filling out the State field in forms needing an address. You start typing "Ma" and Maine or Maryland c

Re: Core Data design patterns

2009-07-19 Thread mmalc Crawford
On Jul 19, 2009, at 5:05 PM, mmalc Crawford wrote: The fundamental behaviour is that method returns NO if something goes wrong. As Jerry kindly pointed out off-list, this method of course returns nil -- not NO -- if something goes wrong. The important issue (and one which has given rise

[iPhone] get iPhone's IP address...

2009-07-19 Thread James Lin
Hi all, I found this code snipet that's supposed to return the iPhone's IP address. I am wondering if anyone can confirm the method for me. As i am told that this method works in an actual iPhone and not on the simulator. But i won't have an iPhone until Aug 9th All i am getting in th

Re: [iPhone] get iPhone's IP address...

2009-07-19 Thread Clark Cox
On Sun, Jul 19, 2009 at 10:50 PM, James Lin wrote: > Hi all, > > I found this code snipet that's supposed to return the iPhone's IP address. > > I am wondering if anyone can confirm the method for me. > As i am told that this method works in an actual iPhone and not on the > simulator. > But i won'

Re: [iPhone] get iPhone's IP address...

2009-07-19 Thread KK
Does the iPhone have NSURLConnection? If so, you can just point that to www.whatismyip.com or a similar site, and just parse the information. On Mon, Jul 20, 2009 at 3:11 PM, Clark Cox wrote: > On Sun, Jul 19, 2009 at 10:50 PM, James Lin wrote: > > Hi all, > > > > I found this code snipet that's

Re: [iPhone] get iPhone's IP address...

2009-07-19 Thread Kyle Sluder
On Jul 19, 2009, at 11:36 PM, KK wrote: Does the iPhone have NSURLConnection? If so, you can just point that to www.whatismyip.com or a similar site, and just parse the information. This is ridiculous. Send an HTTP request to an unreliable third party and parse the unwarranted contents of