Re: Reading in dictionary from txt file: options for speed

2009-04-17 Thread Greg Guerin
Miles wrote: I'm creating a game for where the dictionary file will never get modified, so I'm not really worried about that. I was pretty sure the dictionary was read-only, but that doesn't mean it's always error-free. I was actually thinking of production errors, where the dictionary

Re: Cocoa program without xib file

2009-04-17 Thread Bill Bumgarner
On Apr 16, 2009, at 11:26 PM, Dave Geering wrote: On Fri, Apr 17, 2009 at 1:31 PM, Bill Bumgarner b...@mac.com wrote: What are you trying to do? Building a Cocoa program without a MainMenu.xib [or MainMenu.nib] is possible, but it is not recommended, supported, or at all standard/ typical.

Re: Setting up an auxiliary task for use with Distributed Objects

2009-04-17 Thread Ken Thomases
On Apr 16, 2009, at 11:12 PM, Oleg Krupnov wrote: @Ken with something like: while ([vendedObj shouldKeepRunning]) [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; I think I've seen this code somewhere in the docs, but I

Need to simulate iphone camera application

2009-04-17 Thread developers mac
I need to simulate the camera of iphone through code. I know its possible. But I am not sure on how to perform that action. can some one help me on this? Thanks in Advance! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Advice on server-side web service technology

2009-04-17 Thread Alexander Spohr
Am 17.04.2009 um 00:06 schrieb Russell Cook: I am working on a custom Obj-C framework that I need to expose through web services on an Xserve. I am finding a serious lack of support for server-side web services in the Cocoa frameworks. My searching has turned up little from others

Re: -viewDidMoveToWindow without subclassing? NSViewController?

2009-04-17 Thread John C. Randolph
On a general note, if you want something to happen later than - awakeFromNib, you can always send - performSelector:withObject:afterDelay:cancelPrevious:. If you pass a delay of zero, it will happen the next time through the event loop. I've used this many times to deal with situations

Re: Create Library of Media File

2009-04-17 Thread I. Savant
On Apr 16, 2009, at 10:58 PM, Bright wrote: What's the principle of creating the Library? And,how to implement it? This question is far too broad to answer in an e-mail response. It's better if you break the problem down and ask more pointed questions so we don't have to write an

Re: Reading in dictionary from txt file: options for speed

2009-04-17 Thread Michael Ash
On Thu, Apr 16, 2009 at 10:52 PM, Marcel Weiher marcel.wei...@gmail.com wrote: On Apr 16, 2009, at 18:59 , Michael Ash wrote: On Thu, Apr 16, 2009 at 2:47 PM, WT jrca...@gmail.com wrote: since he'll be dealing with the string's raw bytes, won't Miles have to manually add a null byte to

Re: Setting up an auxiliary task for use with Distributed Objects

2009-04-17 Thread Michael Ash
On Fri, Apr 17, 2009 at 3:10 AM, Ken Thomases k...@codeweavers.com wrote: On Apr 16, 2009, at 11:12 PM, Oleg Krupnov wrote: @Ken with something like:       while ([vendedObj shouldKeepRunning])               [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate

Re: Advice on server-side web service technology

2009-04-17 Thread Alexander Hartner
I had the same issue and found gsoap. It uses C++, but can be integrated nicely in a mm file. Sent from my iPhone On 17 Apr 2009, at 09:23, Alexander Spohr a...@freeport.de wrote: Am 17.04.2009 um 00:06 schrieb Russell Cook: I am working on a custom Obj-C framework that I need to expose

free_garbage and underflow errors when using GC in Cocoa app with SetControlData() and/or HIViewSetText() calls

2009-04-17 Thread Nikita Zhuk
Hello, I'm writing a Cocoa application which is running under Mac OS X 10.5.6 and it's using garbage collection. The application is compiled in gc- supported mode (I'm aware that gc-only apps are the recommended practice instead of gc-supported ones). The application uses a Carbon view

Mac Error Reporting

2009-04-17 Thread Filip van der Meeren
Good afternoon, I have noticed that every time I let an exception slip from my app I get the Problem Reporter from Apple that enables me to send data about the error to them. Is there any way for me to view the errors my users are sending; or should I implement such a function myself. I

How to: continue tracking mouse-drag event even after cursor moves out of the movie....

2009-04-17 Thread rajesh
Hi All, I have two views aligned side by side in parent view (All being NSView's ) I am overriding -(void)mouseDown:(NSEvent *)event - (void)mouseDragged:(NSEvent *)theEvent for some custom drawing in child view subclass To be specific, I draw some rectangle boxes during mouse

Re: How to: continue tracking mouse-drag event even after cursor moves out of the movie....

2009-04-17 Thread Graham Cox
On 18/04/2009, at 12:02 AM, rajesh wrote: I am looking something like autoScroll for NSScrollView , which tracks the mouse movements even outside the application window... Is there any obvious or complex way to achieve this. Use NSScrollView? It doesn't have to have visible

Customizing IKImageBrowserView

2009-04-17 Thread Srinivasa Prabhu
Hi, We are developing a project in which we have a view showing matrix of images ( a common theme). As an enhancement, we would like to support some animations while performing operations like adding, removing, reloading images to this view . As an example we could consider Apple's

Re: Mac Error Reporting

2009-04-17 Thread Scott Ribe
Is there any way for me to view the errors my users are sending; or should I implement such a function myself. Two general approaches: - SmartCrashReporter, which is easy convenient for you since it's prepackaged. Also somewhat controversial since it injects code into every app launched.

Re: Mac Error Reporting

2009-04-17 Thread Filip van der Meeren
Thank you, I think I am going for the second choice, with the helper (An directoryobserver that runs in a runloop should do the trick? Right?). If I go without the helperthread, then you do not have any control over when the error will be submitted. The user might never ever try to run the

Re: How to: continue tracking mouse-drag event even after cursor moves out of the movie....

2009-04-17 Thread rajesh
Child views being dynamically created and placed in the parent view , so I tried this in my child view's subclass -(id)initWithFrame:(NSRect)frame{ self = [super initWithFrame:frame]; //NSView if (self) { NSSize frameSize = [NSScrollView frameSizeForContentSize:frame.size

Re: Cocoa program without xib file

2009-04-17 Thread Sherm Pendley
On Fri, Apr 17, 2009 at 2:26 AM, Dave Geering dlgeer...@gmail.com wrote: On Fri, Apr 17, 2009 at 1:31 PM, Bill Bumgarner b...@mac.com wrote: What are you trying to do? Building a Cocoa program without a MainMenu.xib [or MainMenu.nib] is possible, but it is not recommended, supported, or

starting point for screen-sharing

2009-04-17 Thread Stefan Schütz
Hi, i'm need some kind of screen or window sharing for my application. many questions are unsolved, e.g. share the whole screen or the content of a window only (a window/view from any other application), or capture and share the screen as a picture if the view has changed, ... After hours of

Undo (UI Concept)

2009-04-17 Thread K . Darcy Otto
I am writing a program which has a two-column table. The user can fill in the table with whatever he or she wishes, but sometimes it is possible to determine what should be displayed in the left column by looking at what is displayed in the right column. I have set up the program so that

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-17 Thread Keary Suska
On Apr 16, 2009, at 9:01 PM, Jerry Krinock wrote: The fact that Core Data cannot fetch using a predicate based on transient properties [1] seems to greatly limit the utility of the NSPredicateEditor view, and makes me very sad. For example, say that my objects are student test results

Re: starting point for screen-sharing

2009-04-17 Thread Scott Ribe
http://developer.apple.com/leopard/overview/imframework.html -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Undo (UI Concept)

2009-04-17 Thread Clark Cox
IMHO, if the user performed a single action to get to the current state, then it shouldn't take more than one undo to get to the previous state. So, as a user, I'd prefer #2. On Fri, Apr 17, 2009 at 9:26 AM, K.Darcy Otto do...@csusb.edu wrote: I am writing a program which has a two-column table.

Re: Undo (UI Concept)

2009-04-17 Thread K . Darcy Otto
Yes, I was thinking this too, at first. But then I started to look around to see if I could find analogous situations. The closest I can come is when Pages has a table - let's say 2x2. When the user is in the bottom right cell, and presses tab, two things happen simultaneously: the data

C numerical libraries for integrating with Cocoa

2009-04-17 Thread Chris Goedde
Hi, I'm looking for suggestions for C numerical libraries to integrate with a Cocoa app. Either freeware or commercial is okay, I'm looking for something that will compile under Leopard and integrate with Xcode without too much fiddling around. I don't need anything too fancy, solving

Re: Undo (UI Concept)

2009-04-17 Thread Alex Kac
I would not use Pages as a model for undo. There are quite a few areas where its undo are horrific and wrong and have caused me to lose data. On Apr 17, 2009, at 11:48 AM, K.Darcy Otto wrote: Yes, I was thinking this too, at first. But then I started to look around to see if I could find

Re: C numerical libraries for integrating with Cocoa

2009-04-17 Thread Kevin Cathey
Check out the Accelerate framework. It includes standard libraries like LAPACK, BLAS, vDSP, and vImage: http://developer.apple.com/performance/accelerateframework.html Kevin -- Kevin Cathey On 17 Apr 2009, at 11:56, Chris Goedde wrote: Hi, I'm looking for

Re: Undo (UI Concept)

2009-04-17 Thread Jean-Daniel Dupas
The problem with the 2 undo approach is when you start to think about redo. What append if you undo twice and redo once. - You restore only one value, and get a state that should not be possible as the inference function would have complete the last row if it was done by the user. - You

Re: starting point for screen-sharing

2009-04-17 Thread Greg Guerin
Stefan Schütz wrote: i'm need some kind of screen or window sharing for my application. Why not use the system-supplied screen-sharing? On Leopard, launch System Preferences and click Sharing. Select Screen Sharing in the Service list, then configure and enable it. Go to the other

What is this error: error: expected specifier-qualifier-list

2009-04-17 Thread Greg Robertson
I have done a substantial amount of re-coding and now I am getting a compile error: error: expected specifier-qualifier-list before 'mySubClass' What does this mean? Also is there a reference for XCode compiler error messages? Thanks Greg ___

Re: What is this error: error: expected specifier-qualifier-list

2009-04-17 Thread Greg Guerin
Greg Robertson wrote: I have done a substantial amount of re-coding and now I am getting a compile error: error: expected specifier-qualifier-list before 'mySubClass' What does this mean? Google the invariant text of your error message. Suggested keywords: expected

Re: What is this error: error: expected specifier-qualifier-list

2009-04-17 Thread Drew Lawson
According to Greg Robertson: I have done a substantial amount of re-coding and now I am getting a compile error: error: expected specifier-qualifier-list before 'mySubClass' What does this mean? The examples I see from Google seem mostly to be that your code is using a user defined

Re: C numerical libraries for integrating with Cocoa

2009-04-17 Thread WT
Hi Chris, there's Numerical Recipes... http://www.nr.com/ I have the 2nd C edition of the book (there's now a 3rd edition, in C+ +, with lots of new material) and have used their code in the past, with great success. Wagner On Apr 17, 2009, at 6:56 PM, Chris Goedde wrote: Hi, I'm

How does a new app learn about its menu?

2009-04-17 Thread Darren Minifie
Hi everyone. I have what I think is a pretty straight forward question about an app's main menu. When creating a new Cocoa app in xCode, the final build seems to just know about how to load its menu. there doesn't seem to be any mention of the NSMenu object in the info.plist, the sourcecode, or

Problem: sqlite3 and .sqlite-journal files

2009-04-17 Thread Тимофей Даньшин
Hello. As I wrote earlier, in my application a user can open a database or create a new one, and then perform some tasks, the results of which are stored in the said database. However, a strange thing happens: when the user _creates_ a database, everything is stored as hoped. But when

SQLite 3 crash report - debugging help needed

2009-04-17 Thread Jon C. Munson II
Namaste! I'm not sure that this is the correct list to post this. My app is done in Cocoa though, with a sqlite 3 backend using CoreData to access/manage it. Here's the short version of the crash log (the whole log can be provided, but I didn't want to clutter this email with what may be

Re: mouseDragged: with NSTableView

2009-04-17 Thread Corbin Dunn
On Apr 17, 2009, at 1:56 PM, Ben Lachman wrote: Does anyone know of a way to get a mouseDragged event for a tableview? I've sub-classed NSTableView and it's enclosing scrollview to no effect (doesn't even hit -mouseDragged:). My guess is that it is being eaten by the clip view, but

printer user friendly paper name to internal paper name?

2009-04-17 Thread kvic...@pobox.com
my app is fully recordable and scriptable. when the user changes the page setup, i am able to successfully record it and indicate the paper name chosen via -[NSPrintInfo localizedPaperName]. however, if the user attemps to write a script (either directly or by modifying a previously recorded