Re: Instance vars, local vars and speed

2008-08-04 Thread David Wilson
On Mon, Aug 4, 2008 at 9:16 AM, Trygve Inda [EMAIL PROTECTED] wrote: IMHO, this is just premature optimisation. That said, there is no cost to access an ivar using the 32 bits runtime, and I don't think the cost on 64 bits runtime is important enough to bother with it. This is what I was

Re: Storing values in dictionary with their address as the key

2008-07-28 Thread David Wilson
On Mon, Jul 28, 2008 at 2:13 PM, Carter R. Harrison [EMAIL PROTECTED] wrote: Hey Everybody, If I wanted to store an object in a dictionary and set its key as the object's memory address - how would I go about doing this? Right now I'm doing this: int i; for (i = 0 ; i 10 ; i++) {

Re: Building a Setup Assistant

2008-06-28 Thread David Wilson
On Sat, Jun 28, 2008 at 11:00 PM, Andy Lee [EMAIL PROTECTED] wrote: And remember that the last tab you had open when you save the nib is the one that will be open when the nib is loaded. I often forget this when I go in to tweak something. Better yet, remember that there's an option in the

Re: Grand Central Details

2008-06-17 Thread David Wilson
WWDC is still under NDA, I'm pretty sure no one's allowed to say anything here beyond whatever mentions have been made to the press. On Tue, Jun 17, 2008 at 8:17 PM, Pierce T. Wetter III [EMAIL PROTECTED] wrote: I had a release the week before, plus we didn't have enough tickets since WWDC

Re: creating and using a View xib

2008-06-11 Thread David Wilson
On Wed, Jun 11, 2008 at 2:47 AM, Jerry Isdale [EMAIL PROTECTED] wrote: I had thought there would be a way to use IB to place the view into the window (or tabs). Now I think that is incorrect, and I will need to programmatically load the nib file and place its contents in the window somehow.

Re: Core Data Questions

2008-06-06 Thread David Wilson
On Fri, Jun 6, 2008 at 6:59 PM, Gordon Apple [EMAIL PROTECTED] wrote: I'm currently trying to evaluate whether or not Core Data is a viable storage system in our application. Although I've been through the tutorials, Refs, and searches, I still have questions: 1. Our data hierarchy model

Re: Core Data Questions

2008-06-06 Thread David Wilson
On Fri, Jun 6, 2008 at 8:06 PM, Gordon Apple [EMAIL PROTECTED] wrote: Our data hierarchy has six objects, all of which inherit from BaseList which contains a dictionary (props) and an array (subList). These lists are chained (i.e., the six subclasses). So in the first-attempt data model,

Re: NSBundle getting location of file in bundle

2008-06-05 Thread David Wilson
On Thu, Jun 5, 2008 at 10:37 PM, Mark Bateman [EMAIL PROTECTED] wrote: I'm now trying to use NSBundle to insert the resource location string for a webview. I'm using locally stored content inside the app bundle. I tried using: NSMutableString *url; url = [NSBundle pathForResource:

Re: NSTableView

2008-05-23 Thread David Wilson
On Fri, May 23, 2008 at 4:03 PM, john darnell [EMAIL PROTECTED] wrote: - (id) directoryTable: (NSTableView *) aTableView objectValueForTableColumn:(NSTableColumn *) aTableColumn row: (int) rowIndex { NSLog(@Row index is %d, rowIndex); NSString *file = [arrayOfFiles

Re: Incorporating a scanned form into a user interface

2008-05-22 Thread David Wilson
On Thu, May 22, 2008 at 8:53 PM, Hernandez Associates, Inc [EMAIL PROTECTED] wrote: Creating program for office administration use, I would like to use an employee information (paper) fill in the blank form consisting of six (6) pages, text fields, numerical fields and check boxes as the user

Re: CocoaDev spamming me?

2008-05-22 Thread David Wilson
On Thu, May 22, 2008 at 10:13 PM, Duncan Campbell [EMAIL PROTECTED] wrote: Hey Guys - very off-topic, but is there a reason CocoaDev has gone from 1(ish) per day to every-40-minutes-or-so? Cocoa-Dev has always been pretty high volume.. Did you change your settings away from digest mode, or

Re: RDBMS suggestions for CoreData

2008-05-21 Thread David Wilson
(Whoops, accidentally replied only to Jens at first! Sorry about that.) From http://developer.apple.com/macosx/coredata.html Core Data builds on some of the concepts of enterprise-class database application frameworks, such as the Enterprise Objects Framework in WebObjects. However, make no

Re: Cocoa et al as HCI usability problem

2008-05-19 Thread David Wilson
On Mon, May 19, 2008 at 1:33 PM, Peter Duniho [EMAIL PROTECTED] wrote: Maybe I'm misinformed about how message-dispatching in Objective-C works. But AFAIK, it's nothing like the direct invocation and v-table mechanisms that exist in C# and Java. It's the exact opposite of similar. You're

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread David Wilson
On Sun, May 18, 2008 at 10:39 AM, Erik Buck [EMAIL PROTECTED] wrote: Cocoa is the most consistent, elegant, and productive software development technology I have ever used, and I have used a lot. Cocoa uses key metaphors and design patterns ubiquitously. If the programmer is either unaware

Re: Cocoa et al as HCI usability problem

2008-05-18 Thread David Wilson
On Sun, May 18, 2008 at 8:41 PM, Julius Guzy [EMAIL PROTECTED] wrote: Well, there is a problems with the documentation and if it does not get resolved then people will end up unable to write the code. I mean what is the point in loosing people who actually want to program this machine and are

Re: Multi-storage Core Data

2008-05-17 Thread David Wilson
On Sat, May 17, 2008 at 12:27 PM, Rob Napier [EMAIL PROTECTED] wrote: I understand the basic idea of using Fetched Properties and how to create them. What I'm not clear on is how to define a fetched property in one store against objects in another store, or how to tie multiple stores together

Re: Dictionary Enumeration

2008-05-08 Thread David Wilson
On Thu, May 8, 2008 at 7:19 PM, Western Botanicals [EMAIL PROTECTED] wrote: How can I lock it then? If you just want to lock it for synchronization, use an NSLock if you're multithreaded. Actually, if you're multithreaded, you should really be aware that none of the containers are thread-safe

Re: BLOBs, MySQL, hex. Oh my

2008-05-07 Thread David Wilson
On Wed, May 7, 2008 at 11:12 PM, Ben Einstein [EMAIL PROTECTED] wrote: John's suggestion of getting rid of strlen was spot on; the code below works extremely well if using [NSData length] a single time before the loop. What I'm still curious about is the difference in processing between the

SOLVED ?? Re: Application Launch (or doesn't Launch as such)

2008-04-24 Thread David Wilson
. BUGGER. - David On 24/04/2008, at 2:22 PM, David Wilson wrote: Interestingly enough I thought that Zero_Link was off (so that I could send copies of the app to others). And this had been done long ago 10.4.x days... Looking now, I see a User Defined Attribute called Zero_Link and it's

Application Launch (or doesn't Launch as such)

2008-04-23 Thread David Wilson
Hi everyone... I'm perplexed... I'm running Xcode 3.1 (actually iPhone SDK Beta 3) on Mac OS 10.5.2 My application doesn't launch when I click the run button in Xcode (note it is NOT an iPhone app). It's an application to control USB devices. XCode tells me that the application has

Re: Application Launch (or doesn't Launch as such)

2008-04-23 Thread David Wilson
Interestingly enough I thought that Zero_Link was off (so that I could send copies of the app to others). And this had been done long ago 10.4.x days... Looking now, I see a User Defined Attribute called Zero_Link and it's set to NO. I've deleted it and recompiled (from clean). This

Re: Modal popup from command line tool or daemon?

2008-04-18 Thread David Wilson
A command line tool or a true background daemon can't really pull it off- the process wouldn't have a connection to the window server to actually do any of that. The best bet, I think, would be to have a small helper application that could be launched to display the appropriate alert; the helper

Re: Why is [nil aMessage] a no-op?

2008-04-17 Thread David Wilson
On Thu, Apr 17, 2008 at 9:19 PM, Graham Cox [EMAIL PROTECTED] wrote: Actually in C++ it produces a solid, good old fashioned crash (I don't know about the others). This isn't good - it means you have to check every single return value and pointer for nil before you can use it - code ends

Re: Override AppleScrollBarVariant on NSScroller?

2008-04-12 Thread David Wilson
On Thu, Apr 10, 2008 at 8:00 AM, [EMAIL PROTECTED] wrote: Thanks Mike, adding a default to NSArgumentDomain (i.e. by passing {-AppleScrollBarVariant, Single} to the executable on launch) did the trick. As others have mentioned... please don't actually do this. The setting is a system-wide

Re: Efficient object wrappers and GC

2008-04-11 Thread David Wilson
On Fri, Apr 11, 2008 at 4:15 PM, Michael Ash [EMAIL PROTECTED] wrote: I think it's inherently not possible to do without destroying the speed you're trying to gain. Due to how Apple's collector is implemented, not generating write barriers for stack values, seeing if an object has been

Re: NSURLConnection doesn't post

2008-04-11 Thread David Wilson
On Fri, Apr 11, 2008 at 1:32 PM, Jean-Daniel Dupas [EMAIL PROTECTED] wrote: NSRunloop documentation disagree: In general, your application does not need to either create or explicitly manage NSRunLoop objects. Each NSThread object, including the application's main thread, has an NSRunLoop

Core Data migration

2008-03-29 Thread David Wilson
I have a reasonably complex core data data model which makes use of entity inheritance. In an attempt to make use of the new Leopard data migration tools, I created a new version, made a few minor desired changes (added a few entities and created the relationships to them- no changes to existing