Re: microsoft file formats in cocoa

2009-05-16 Thread Thomas Davie
Op 17 May 2009, om 02:02 heeft Alexander Cohen het volgende geschreven: 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. For .doc, go look at the TextEdit sources - it's in the

how to use package maker to make a update package.

2009-05-16 Thread Chris Gardner
Hi, I want your favor. Now I have a software of alpha version and want to update this version to add new files. After making a update package with Package Maker tool, and then setuping the update package, the same name of original file will be instead, but the others

Is there only one CFRunLoopRun which can implement in one process

2009-05-16 Thread Chris Gardner
Hi everyone, Now I have a problem about CFRunLoopRun function which is located in http://developer.apple.com/DOCUMENTATION/CoreFoundation/Reference/CFRunLoopRef/Reference/reference.html I have created two thread, and in each thread I call CFRunLoopRun function to download file from

Re: Calling delegates explicitly

2009-05-16 Thread Bill Bumgarner
On May 16, 2009, at 9:04 PM, Jason Stephenson wrote: Eric E. Dolecki wrote: If I understand you, make a method which you can call directly and call this also from your delegate selector. I was trying to say that if you implement a class that has the following method: -(void) setDelegate:

Re: Calling delegates explicitly

2009-05-16 Thread Jason Stephenson
Eric E. Dolecki wrote: If I understand you, make a method which you can call directly and call this also from your delegate selector. I was trying to say that if you implement a class that has the following method: -(void) setDelegate: (id) delegate; You are more or less obligated to call:

Core Data Predicate Bug?

2009-05-16 Thread ALEXander
Hello, 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 (control) with a to-one relationship to a

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

2009-05-16 Thread M Pulis
odd, I wonder how settings>wallpaper>camera roll or wallpaper works? maybe 3.0 will help... Sent from my iPhone On May 16, 2009, at 6:38 PM, James Lin wrote: Alex, thanx :) I don't mind writing it myself if I have to. Just the software looks weird if 9 out of my 10 settings can be set in

new NSTreeController bug in 10.5.7?

2009-05-16 Thread Dave Fernandes
I just discovered a bug in my app that is always reproducible in 10.5.7, and non-existent in 10.5.6. Wondering if anyone else has come across this. Application uses: CoreData with bindings, NSTreeController with an NSOutlineView. Steps to reproduce: outline view has a top level object wit

Re: Using an arraycontroller for different object classes

2009-05-16 Thread Ken Thomases
On May 15, 2009, at 11:47 PM, Gideon King wrote: In the mini example, yes I would want the object array for weight to have the full array, and the object array for the tyre size to have the filtered array, and as you say, this could be accomplished with separate controllers. However, this m

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

2009-05-16 Thread James Lin
Alex, thanx :) I don't mind writing it myself if I have to. Just the software looks weird if 9 out of my 10 settings can be set in Settings Application, and only 1 image picker setting is done in my own app James On 2009/5/17, at 上午 7:31, Alex Kac wrote: You'll have to write your own

Which field is the NSTextFieldCell drawing?

2009-05-16 Thread K. Darcy Otto
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 assignment is done in - tableView:willDisplayCell:forTable

microsoft file formats in cocoa

2009-05-16 Thread Alexander Cohen
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. thx AC ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

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

2009-05-16 Thread Alex Kac
You'll have to write your own settings embedded in your app. On May 16, 2009, at 11:44 AM, James Lin wrote: Hi, The settings application works great. However, I need to have an image selected as part of user defaults. ie, i need to have a way for the user to pick an image as an option item.

Re: Calling delegates explicitly

2009-05-16 Thread Eric E. Dolecki
If I understand you, make a method which you can call directly and call this also from your delegate selector. Thanks, E. On May 16, 2009, at 4:27 PM, Jason Stephenson wrote: Uli Kusterer wrote: On 16.05.2009, at 19:28, Bill Bumgarner wrote: On May 16, 2009, at 10:21 AM, Sourabh Sahu wrot

Re: Calling delegates explicitly

2009-05-16 Thread Jason Stephenson
Uli Kusterer wrote: On 16.05.2009, at 19:28, Bill Bumgarner wrote: On May 16, 2009, at 10:21 AM, Sourabh Sahu wrote: Can we call delegates explicitly, Please reply soon. Yes. But it is a bad idea. What exactly was the question, and why is it a bad idea? I'm unable to follow the conversa

Re: -[NSScriptCommand suspendExecution]

2009-05-16 Thread kvic...@pobox.com
At 1:36 AM -0400 5/16/09, Jim Correia wrote: On Fri, May 15, 2009 at 12:26 PM, kvic...@pobox.com wrote: if i call -[NSScriptCommand suspendExecution] whilst execution a script command, i find that the executing script will still time out after 2 minutes. is this a bug in cocoa? or a misun

Re: Calling delegates explicitly

2009-05-16 Thread Uli Kusterer
On 16.05.2009, at 19:28, Bill Bumgarner wrote: On May 16, 2009, at 10:21 AM, Sourabh Sahu wrote: Can we call delegates explicitly, Please reply soon. Yes. But it is a bad idea. What exactly was the question, and why is it a bad idea? I'm unable to follow the conversation, it seems ... ?

Re: Categories and splitting an app into logical blocks.

2009-05-16 Thread Greg Guerin
Тимофей Даньшин wrote: Is it a good idea to split all those classes into categories for writing, reading and testing? For example, Database (Writing), Database(Reading), Database(Testing) and so on? Or is it a silly thing to do for some reason? I suggest reading about why Objective-C has

Re: Categories and splitting an app into logical blocks.

2009-05-16 Thread Fritz Anderson
On 15 May 2009, at 2:57 PM, Тимофей Даньшин wrote: Is it a good idea to split all those classes into categories for writing, reading and testing? For example, Database (Writing), Database(Reading), Database(Testing) and so on? Or is it a silly thing to do for some reason? That's something

Re: Calling delegates explicitly

2009-05-16 Thread Bill Bumgarner
On May 16, 2009, at 10:21 AM, Sourabh Sahu wrote: Can we call delegates explicitly, Please reply soon. Yes. But it is a bad idea. b.bum ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Calling delegates explicitly

2009-05-16 Thread Sourabh Sahu
Hi All, Can we call delegates explicitly, Please reply soon. Thanks Sourabh DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.

Re: Cocoa-dev Digest, Vol 6, Issue 742

2009-05-16 Thread Michael Ash
On Sat, May 16, 2009 at 1:30 AM, Tron Thomas wrote: > I fixed the problem. It turns out I was forgetting to retain the array. I'm > not sure why it worked before when I was just creating it in the anonymous > name space and the -init function. The bug where you were running code in a context that

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

2009-05-16 Thread James Lin
Hi, The settings application works great. However, I need to have an image selected as part of user defaults. ie, i need to have a way for the user to pick an image as an option item. The SettingsApplicationSchema doesn't work with images. I need to find a way to integrate User Defaults wit

Re: User Access Rights

2009-05-16 Thread Greg Guerin
It's a bit primitive but you could issue the 'id' shell command via NSTask and scan the reply for '80(admin)'. It's also needlessly convoluted. The 'id' command isn't using magic. There are library functions and system calls for this. See: man getgroups man getegid -- GG

Re: Help with drawing

2009-05-16 Thread Chris Goedde
On May 16, 2009, at 2:24 AM, Graham Cox wrote: On 16/05/2009, at 5:01 PM, Development wrote: theX = turretBottom.x + 103* sin(angle * PI/180); Above is what I am using to get the X coord now I need it exactly opposite the point it appears at. 103 is the height of the turret. angle is the

Re: Invoice program made in Objective c/Cocoa

2009-05-16 Thread Michael Ash
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 principle." > > A design "principle"? Ca

Re: Invoice program made in Objective c/Cocoa

2009-05-16 Thread Andreas Grosam
On May 16, 2009, at 12:33 PM, Kyle Sluder wrote: On Sat, May 16, 2009 at 5:48 AM, Andreas Grosam wrote: Even more, it would in no way an exaggerated asset if it would seamlessly support to create application servers, leveraging DO, and creating web applications with minimal code changes

Re: KVO compliant array proxy

2009-05-16 Thread Gideon King
I have found another way around this problem. Gideon ___ 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/Unsubs

Re: Invoice program made in Objective c/Cocoa

2009-05-16 Thread 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, supporting multi-user, locking and > transactions.

Re: Invoice program made in Objective c/Cocoa

2009-05-16 Thread Andreas Grosam
On May 15, 2009, at 5:16 PM, Ilan Volow wrote: Apple hasn't addressed the need for Cocoa to interact with database servers, so you'll be on your own in this dept. (I've never worked with Core Data) Given the complexity of Core Data (and the occasionally interspersed warnings, that this st

Re: KVO compliant array proxy

2009-05-16 Thread Gideon King
Sorry, I explained why I need to dynamically manage the arrays in a previous post - I need to use different subsets of the overall set of objects depending on what types of object are in the overall array, and which specific attribute I am binding to, so I do need to manage the arrays dynam

Re: KVO compliant array proxy

2009-05-16 Thread Kyle Sluder
On Sat, May 16, 2009 at 4:00 AM, Gideon King wrote: > I am trying to use an array controller to bind to an array that I manage, > and it appears from the documentation that I need to have a proxy object > that responds to all the standard array methods, so I created that, and if I Wait, what?! h

Re: System Preference like App

2009-05-16 Thread Uli Kusterer
On 16.05.2009, at 10:01, listsapple wrote: I don't know if Cocoa has the equivalent of Carbon's HIWindowSetContentBorderThickness(), but if it has, that might be a simpler alternative to a toolbar. May require OS X 10.5 though. There's an equivalent NSWindow method. Cheers, -- Uli Kustere

KVO compliant array proxy

2009-05-16 Thread Gideon King
I am trying to use an array controller to bind to an array that I manage, and it appears from the documentation that I need to have a proxy object that responds to all the standard array methods, so I created that, and if I have the array methods named along the lines of the key binding, th

Re: System Preference like App

2009-05-16 Thread Uli Kusterer
On 16.05.2009, at 09:40, cocoa learner wrote: Any body has any idea how to create System Preference like app using cocoa? Any kind of hint or tutorial or example will be helpful to understand. Only have hints: NSTabView for switching pages (tabs can be turned off), NSToolbar for the stuff

System Preference like App

2009-05-16 Thread cocoa learner
Hi All, Any body has any idea how to create System Preference like app using cocoa? Any kind of hint or tutorial or example will be helpful to understand. Thanking you all cocoa.learner ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Disabling menu items

2009-05-16 Thread Uli Kusterer
On 15.05.2009, at 19:05, Quincey Morris wrote: A better approach would be for your NSDocument subclass instances to check, in initWithType: or one of the ReadFrom... methods, if a document already exists (via [NSDocumentController documents]), and simply return an error if so. [Actually, sin

Re: Help with drawing

2009-05-16 Thread Graham Cox
On 16/05/2009, at 5:01 PM, Development wrote: theX = turretBottom.x + 103* sin(angle * PI/180); Above is what I am using to get the X coord now I need it exactly opposite the point it appears at. 103 is the height of the turret. angle is the angle it is in relation to the platform it sits

Help with drawing

2009-05-16 Thread Development
I am trying to draw a pixel in a specific place within a rectangle. there is a movable turret and I want to draw at a point directly at the end of this turret. Now when I draw at the left side of the screen it works flawlessly. but when I get to the right side of the screen and want to draw t