Re: LMSetKey[Rep]Thresh

2009-05-17 Thread Eric Schlegel
On May 17, 2009, at 9:37 PM, Christopher Hansen wrote: First of all, I want to be able to set them, so I primarily need the setters, but I also want the getters because I want to be able to restore the previous values when my app exits or is swapped out. LMSetKeyRepThresh turns into this:

Re: LMSetKey[Rep]Thresh

2009-05-17 Thread Nick Zitzmann
On May 17, 2009, at 10:37 PM, Christopher Hansen wrote: Second, my goal is to move entirely to Cocoa since, as I understand it, support for Carbon is being frozen with the release of Snow Leopard. So, I'm currently in the process of removing all of my Carbon dependencies. Where did you

Re: Which field is the NSTextFieldCell drawing?

2009-05-17 Thread K. Darcy Otto
Hi Jim. You were right; there was a problem with how I was setting up the table column for my cell subclass. It turned out that my subclass was only returned for certain columns in my table (by design), and so I needed to distinguish between columns before calling methods in that subclass

Re: refreshObject throws for object no longer in database

2009-05-17 Thread Steve Steinitz
Hi For the archives, I'll comment on my own question. On 17/5/09, Steve Steinitz wrote: I've added code to refresh objects from the database store ... It works well except when another machine has deleted an object. I've tried several ways of overcoming the NSObjectInaccessibleException I

Re: LMSetKey[Rep]Thresh

2009-05-17 Thread Christopher Hansen
First of all, I want to be able to set them, so I primarily need the setters, but I also want the getters because I want to be able to restore the previous values when my app exits or is swapped out. Second, my goal is to move entirely to Cocoa since, as I understand it, support for Carbon is b

menus within NSTable

2009-05-17 Thread Chris Idou
I've got an NSTable where I've made one column to have a NSPopupButtonCell as its contents. Depending on the object that relates to a particular row, I only want two of four possible values to be selectable in each row. I tried to achieve this by setting the Enabled binding of each NSMenuItem

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Michael Ash
On Sun, May 17, 2009 at 11:42 AM, Andreas Grosam wrote: > On May 16, 2009, at 5:09 PM, Michael Ash wrote: > >> On Sat, May 16, 2009 at 8:48 AM, Andreas Grosam >> wrote: > > I really can‘t believe this. It would be a great faux-pas!  Do I really > miss > something? Is this limitati

Re: Format Column for Selected Row

2009-05-17 Thread mmalc Crawford
On May 17, 2009, at 6:58 PM, Walker Argendeli wrote: I have a table with a "priority" column. For each row, I want this column to display a number of exclamation marks corresponding to the Core Data "priority" attribute's value for that row. How could I achieve something like that? My in

Format Column for Selected Row

2009-05-17 Thread Walker Argendeli
I have a table with a "priority" column. For each row, I want this column to display a number of exclamation marks corresponding to the Core Data "priority" attribute's value for that row. How could I achieve something like that? My initial thought was to use bindings and a number format

Re: LMSetKey[Rep]Thresh

2009-05-17 Thread Sean McBride
Christopher Hansen (christopher.han...@yahoo.com) on 2009-05-14 1:45 PM said: >I'm writing a game and I need to set the key and key repeat thresholds >in my Cocoa application. The functions needed to do to this under >Carbon (Events.h) are: > >LMGetKeyThresh >LMSetKeyThresh >LMGetKeyRepThresh >LM

Re: Format Column for Selected Row

2009-05-17 Thread Steven Riggs
Maybe try a value transformer? All the best, Steven Riggs http://www.stevenriggs.com On May 17, 2009, at 9:58 PM, Walker Argendeli wrote: I have a table with a "priority" column. For each row, I want this column to display a number of exclamation marks corresponding to the Core Data "prior

NSURLConnection set to cache

2009-05-17 Thread Eric E. Dolecki
I just want to be sure of something - if I set the images to cache, when I load the same url again, the image is coming from memory - because I put in a progress bar and the images loaded already I thought would have an instantly populated progress bar, but they still load with progress (albeit qui

system configuration & 3g ppp

2009-05-17 Thread Joseph Yu
Hi How to use system configuration and modem script to set APN and telephone number to dial up programatically? I have survey the system configuration. There is no key value for APN. BTW,sudo don't allow blank administrator password,security framework allow this.why? BR ***

Fwd: [iPhone] Settings Application...need an Image Picker

2009-05-17 Thread M Pulis
Sent from my iPhone Begin forwarded message: From: M Pulis Date: May 17, 2009 4:13:15 PM PDT To: Alex Kac Cc: James Lin , Cocoa Dev > Subject: Re: [iPhone] Settings Application...need an Image Picker time for a bug report to apple... maybe 3.0 will enhance this, like the image kit in

Re: [iPhone] Settings Application...need an Image Picker

2009-05-17 Thread M Pulis
time for a bug report to apple... maybe 3.0 will enhance this, like the image kit in 10.5 vs what 10.4 provides. Sent from my iPhone On May 17, 2009, at 3:01 PM, Alex Kac wrote: Apple has its own implementations. But for third party apps, they only provide basic settings abilities in that

Re: microsoft file formats in cocoa

2009-05-17 Thread David Hoerl
The libxls open source project on sourceforge.net allows you to read and parse .xls files. This library works under OSX - I know, I'm one of the developers :-) David ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Core Data Predicate Bug?

2009-05-17 Thread Jerry Krinock
On 2009 May 16, at 05:13, ALEXander wrote: I am currently developing a Core Data Application. I have an entity... I'd like to echo Jim's advice to make a standalone sample project. Generalizing your description of the problem, you're saying that a Core Data fetch predicated with "someBool

re: Fetch Requests on Non Standard Classes in Core Data

2009-05-17 Thread Ben Trumbull
To make matters worse though, the guid is wrapped in what is effectively a container class which includes network serialization functionality, an isEqual method, etc along with the 16 bytes of guid data. If possible I would like to store the wrapper object in Core Data rather than extractin

Re: [iPhone] Settings Application...need an Image Picker

2009-05-17 Thread Alex Kac
Apple has its own implementations. But for third party apps, they only provide basic settings abilities in that same spot. On May 16, 2009, at 10:31 PM, M Pulis wrote: odd, I wonder how settings>wallpaper>camera roll or wallpaper works? maybe 3.0 will help... Sent from my iPhone On May 16,

re: Core Data Problem: Creating a child object creates unwanted parent

2009-05-17 Thread Ben Trumbull
Using the example from the guides, when I create a new employee with Employee *newEmployee = [NSEntityDescription insertNewObjectForEntityForName:*@"employee"* inManagedObjectContext:* context];* I not only get a new employee, but also a new unnamed department. When I add the employee to the

Re: microsoft file formats in cocoa

2009-05-17 Thread Dimitri Bouniol
You could try to see if you could use applescript to convert between office formats and iWork formats, then just read through the xml-based iWork formats. Most of them are detailed in the developer documentation. On May 17, 2009, at 12:36 PM, Alexander Cohen wrote: I've looked at the file fo

Re: microsoft file formats in cocoa

2009-05-17 Thread Jason Stephenson
Alexander Cohen wrote: Does anyone know of any libraries that can read microsoft formats ( xls, ppt, doc, etc, ... )? I'd rther not reinent the wheel if something is already out there. You could look at the source code for OpenOffice.org. It does a pretty good job of handling MS Office files.

RE: File formats for multi-doc app: packages, single files or zipped alternatives

2009-05-17 Thread Kirk Kerekes
Serialized NSFileWrapper? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscripti

Re: microsoft file formats in cocoa

2009-05-17 Thread Alexander Cohen
I've looked at the file format spec a bit and i'm not sure i really want to get into it. It's something like 200 pages long. thx AC On May 17, 2009, at 6:27 AM, Тимофей Даньшин wrote: TextEdit doesn't render quite a lot of things in doc files, such as footnotes, headers/footers, comments a

Re: File formats for multi-doc app: packages, single files or zipped alternatives

2009-05-17 Thread Greg Guerin
Keith Blount wrote: Anyway, my question is, is there a happy medium between the single file format and the file package? Some archive formats support an index or table-of-contents, others don't. To use an index or TOC, you load only the index data into memory, and subsequently load onl

Re: Which field is the NSTextFieldCell drawing?

2009-05-17 Thread Jim Correia
On Sun, May 17, 2009 at 12:08 PM, K. Darcy Otto wrote: > Thank you.  The thing is, the cell object returned by > -tableView:willDisplayCell:forTableColumn:row: is not from my > NSTextFieldCell subclass but rather the superclass – even though it is the > subclass doing the drawing.  Any idea how to

Re: File formats for multi-doc app: packages, single files or zipped alternatives

2009-05-17 Thread Jeffrey Oleander
> On Sun, 2009/05/17, Keith Blount wrote: > From: Keith Blount > Subject: File formats for multi-doc app: packages, single files or zipped > alternatives > To: cocoa-dev@lists.apple.com > Date: Sunday, 2009 May 17, 12:20 > I’m working on version 2 of my software at the moment, > and in so doing

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Andy Lee
On May 17, 2009, at 11:42 AM, Andreas Grosam wrote: This framework might be more useful in this case: It has similar features and a similar API like Core Data but does not have the limitation. It does look pretty powerful. --Andy

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Andy Lee
On May 17, 2009, at 12:42 PM, Robert Claeson wrote: I think that Andreas understand the current design goals of CD perfectly well, Actually I missed the parts that others have quoted that seem to indicate Andreas knows *less* about it than I thought. FWIW: Instead of thinking of Core Data

Re: Calling delegates explicitly

2009-05-17 Thread Jeffrey Oleander
> On Sat, 2009/05/16, Jason Stephenson wrote: > From: Jason Stephenson > Subject: Re: Calling delegates explicitly > To: "Cocoa Cocoa-Dev" > Date: Saturday, 2009 May 16, 23:04 >> Eric E. Dolecki wrote: >> If I understand you, make a method which you can call >> directly and call this also from

File formats for multi-doc app: packages, single files or zipped alternatives

2009-05-17 Thread Keith Blount
Hi, I’m working on version 2 of my software at the moment, and in so doing and am looking into the possibility of a better file format and was wondering if I am missing something. Currently, my program uses a file package format i.e. a folder that looks like a single file, but the contents of

Re: new NSTreeController bug in 10.5.7?

2009-05-17 Thread Dave Fernandes
On second glance, the problem is not with adding a new child object, but with updating any of the child object's attributes that are bound to an NSTableColumn in the outline view (after the child has been added to the object graph). On May 16, 2009, at 10:38 PM, Dave Fernandes wrote: I jus

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread mmalc Crawford
On May 16, 2009, at 2:48 AM, Andreas Grosam wrote: (I've never worked with Core Data) Please do, and then come back with a more informed -- perhaps even useful -- critique. Given the complexity of Core Data (and the occasionally interspersed warnings, that this stuff is no "entry level")

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Robert Claeson
On 17 May 2009, at 17:32, Andy Lee wrote: On May 17, 2009, at 11:42 AM, Andreas Grosam wrote: On May 16, 2009, at 5:09 PM, Michael Ash wrote: [...] Whining about how it doesn't support massive multi-user applications makes absolutely no sense. Now, I'm starting to wonder whether you had ever

EOF clone GDL2 (was: Re: Invoice program made in Objective c/Cocoa)

2009-05-17 Thread Lars Sonchocky-Helldorf
Am 16.05.2009 um 12:33 schrieb Kyle Sluder: On Sat, May 16, 2009 at 5:48 AM, Andreas Grosam wrote: Given the complexity of Core Data (and the occasionally interspersed warnings, that this stuff is no "entry level") it sounds silly that it would not support database servers, that is, suppor

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Andy Lee
On May 17, 2009, at 11:42 AM, Andreas Grosam wrote: On May 16, 2009, at 5:09 PM, Michael Ash wrote: [...] Whining about how it doesn't support massive multi-user applications makes absolutely no sense. Now, I'm starting to wonder whether you had ever designed a database application (or framew

Re: how to use package maker to make a update package.

2009-05-17 Thread Greg Guerin
Chris Wu wrote: How can I update the old files ,meanwhile do not delete the others with Package Maker tool. The Installer-Dev list is a better place to ask this question. http://lists.apple.com/mailman/listinfo/installer-dev -- GG ___ Cocoa-

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Bill Bumgarner
On May 17, 2009, at 8:42 AM, Andreas Grosam wrote: On May 16, 2009, at 5:09 PM, Michael Ash wrote: On Sat, May 16, 2009 at 8:48 AM, Andreas Grosam > wrote: I really can‘t believe this. It would be a great faux-pas! Do I really miss something? Is this limitation anywhere documented? You say

Re: Which field is the NSTextFieldCell drawing?

2009-05-17 Thread K. Darcy Otto
Thank you. The thing is, the cell object returned by - tableView:willDisplayCell:forTableColumn:row: is not from my NSTextFieldCell subclass but rather the superclass – even though it is the subclass doing the drawing. Any idea how to address the subclass object directly? On 17-May-09, a

Re: Invoice program made in Objective c/Cocoa

2009-05-17 Thread Andreas Grosam
On May 16, 2009, at 5:09 PM, Michael Ash wrote: On Sat, May 16, 2009 at 8:48 AM, Andreas Grosam wrote: I really can‘t believe this. It would be a great faux-pas! Do I really miss something? Is this limitation anywhere documented? You say "limitation," the rest of the world says "design p

Re: Which field is the NSTextFieldCell drawing?

2009-05-17 Thread Jim Correia
On Sat, May 16, 2009 at 9:05 PM, K. Darcy Otto wrote: > I have an NSTextFieldCell subclass that needs to draw itself differently > depending on which NSTableView row it is drawing.  My current solution is to > store the row that is being drawn in my document class in an instance > variable (the a

Re: Core Data Predicate Bug?

2009-05-17 Thread Jim Correia
On Sat, May 16, 2009 at 8:13 AM, ALEXander wrote: > I am currently developing a Core Data Application. I have an entity (set) > with a boolean attribute 'isActive' (optional, non-transient, non-indexed, > default NO). For some of my objects, this attribute is set to YES. There is > another entity

RE: Is there only one CFRunLoopRun which can implement in one process

2009-05-17 Thread Chris Gardner
I want to download two files at the same time, so I create two thread in which set up CFRunLoopRun. In each run loop , there is a global function to receive date from FTP server. And after finishing downloading the desired file, I will kill the run loop with CFRunLoopRun(CFRunLoopGetCurrent),

RE: Is there only one CFRunLoopRun which can implement in one process

2009-05-17 Thread Chris Gardner
Hi Ken, Thanks for your reply. You are right, there are other API build on top of a run loop. In main thread, I create a thread function in which I implement a class instance that can download file. The question is that after the first thread downloaded file , the second th

refreshObject throws for object no longer in database

2009-05-17 Thread Steve Steinitz
Hello, I'm using Core Data for a multi-user point-of-sale system. To overcome occasional exceptions on save, I've added code to refresh objects from the database store (using a sort of souped up [context refreshObject:]) periodically during idle and, if needed, just before key operations lik

Re: Is there only one CFRunLoopRun which can implement in one process

2009-05-17 Thread Ken Thomases
On May 17, 2009, at 12:04 AM, Chris Gardner wrote: I have created two thread, and in each thread I call CFRunLoopRun function to download file from FTP server. It should not be necessary to create two threads. The whole point of run loops is that they manage multiple asynchronous input sou

Re: microsoft file formats in cocoa

2009-05-17 Thread Тимофей Даньшин
TextEdit doesn't render quite a lot of things in doc files, such as footnotes, headers/footers, comments and lots of other things. I've tried to find a library that would do that, but failed. If you do find anything like that (or reinvent it for that matter ;) ), please, let me know as well.