Re: GDB Problems

2008-09-11 Thread Jason Coco
On Sep 12, 2008, at 00:10 , Bridger Maxwell wrote: Woops. I tried to reply to this thread a while ago, but I wasn't watching what I was doing and accidentally replied specifically to Ken. Sorry Ken! I am still having this issue though. I suspect you've recently installed a haxie, input ma

Re: GDB Problems

2008-09-11 Thread Bridger Maxwell
Woops. I tried to reply to this thread a while ago, but I wasn't watching what I was doing and accidentally replied specifically to Ken. Sorry Ken! I am still having this issue though. > I suspect you've recently installed a haxie, input manager, third-party >> kernel extension or other piece of

New Core Data document

2008-09-11 Thread Chris Idou
I need to create a new core data document apart from the Core-data based document framework. (*) I can't pass nil to NSPersistentStoreCoordinator.addPersistentStoreWithType because that is an error. So how do I create an in-memory document until such time as it is saved and the user is prompte

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Robert Douglas
Perhaps in another situation, but in the case I didn't define anything. The macro was defined in NSObjRuntime which I presume is brought in by my precompiled header. It might actually be easier to redefine the template in all the numerical recipes. :-) On 11-Sep-08, at 5:24 PM, Clark Cox

Re: clearing NSView outside of drawRect:

2008-09-11 Thread Ken Ferry
If I read this correctly, you're hoping that you can erase some of the drawing done in your overlay view, just revealing the original drawing in your complex background view. That won't work (with some caveats about layer-backed mode). All views draw into one flat buffer, called the window backin

Re: clearing NSView outside of drawRect:

2008-09-11 Thread Michael Ash
On Thu, Sep 11, 2008 at 5:09 PM, Chinh Nguyen <[EMAIL PROTECTED]> wrote: > How do you clear an NSView when drawing outside of drawRect:? Don't. Drawing outside of drawRect: is, essentially, wrong. There are extremely rare cases where it makes sense, but in virtually all cases, if you suddenly feel

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Clark Cox
You may want to consider using std::max from the C++ standard library instead of defining your own such function. On Thu, Sep 11, 2008 at 5:03 PM, Robert Douglas <[EMAIL PROTECTED]> wrote: > Thanks Johnathan. That was the problem, and #undef worked like a charm. I > also had a look at the prepro

Animate a CGPath

2008-09-11 Thread Daniel Weber
Hi everyone. I have an NSView with some appkit drawing code that I'm trying to convert to core graphics drawing code. One thing I'm having trouble with is the transition from NSBezierPath to CGPath. Basically in my application, I want to animate the drawing a curve. In other words, I want to show t

clearing NSView outside of drawRect:

2008-09-11 Thread Chinh Nguyen
How do you clear an NSView when drawing outside of drawRect:? I added and positioned a custom view on top another view (addSubView:positioned:relativeTo:) that draws a complex image so that I can draw selections in my custom view without having to worry about redrawing my original image or

making keyboard shortcuts work on different keyboard layouts

2008-09-11 Thread Max
hi list (i hope this is the right place to ask this question), i have an application where i use the keyboard command to swith between windows (cmd-`). now i realize that the standard shortcut on for example a german keyboard is cmd-< for this function. how to make those shortcuts work on no

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Robert Douglas
Thanks Johnathan. That was the problem, and #undef worked like a charm. I also had a look at the preprocessor output as Scott suggested and the lines had been converted to gobbledygook. Rob On 11-Sep-08, at 4:42 PM, Jonathan Prescott wrote: You might want to take a look at the other header

Re: Core Data Migration Progress

2008-09-11 Thread Adam Swift
On Sep 11, 2008, at 8:08 AM, Doug Penny wrote: I have a core data store that I am migrating using the default/automatic migration process. It seems to work very smoothly, but takes a minute or two to complete. I would like to provide some type of feedback to the user to let them know what is

Re: Core Data "Save as" versions

2008-09-11 Thread Adam Swift
On Sep 11, 2008, at 2:09 AM, Ken Tabb wrote: Morning folks, I was reading the Core Data version migration documentation, and it seems easy to use (haven't put it into practice yet as I was reading it on a sunbed on hols, and I have enough trouble sneaking programming books into the share

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Scott Ribe
> Any suggestions? Preprocess, to find out if there is a #define MAX somewhere messing up your function definition. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Jonathan Prescott
You might want to take a look at the other header files you might be including, including those included by the AppKit or other Apple headers. MAX is a well-known MACRO definition for providing a max "function" for C (and Objective-C) environments, and, if it is being expanded by the C/C++

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Robert Douglas
I'm in the same boat. Is the C++ code handled the same in both? I've been trying to add some numerical recipes routines to my cocoa app and I'm stymied by an apparent difference. The nr3.h header compiles fine if I have it in a .cpp file, but not when it is in a .mm one.The line tem

Re: Link aganist

2008-09-11 Thread Meik Schuetz
Hi there, in the target properties, make sure the header file search path is set to the directory in which you've got the 3rd party header files. To link the dylib files with the project, click on Project -> Add to project and select the necessary dylib files. Hope that helps. Meik On Se

Re: Inter-machine notifications

2008-09-11 Thread Steve Steinitz
Hi Kirk, I wanted to thank you for your informative and helpful post. You've straightened out the client-server (or not) aspect for me and thanks for the pointer to the demo and the bit of history about the demo. Its all very interesting and I'm re-energized to try again. I'm still not clea

Re: Link aganist

2008-09-11 Thread Jamie Hardt
Did you include /usr/lib/libSystem.dylib into your Linked Frameworks? On Thu, Sep 11, 2008 at 3:04 PM, dexter morgan <[EMAIL PROTECTED]>wrote: > Hello List, > I've a simple c project that uses semaphores. > I've tried to include it inside the main.c > > #include > #include > #include > #includ

Link aganist

2008-09-11 Thread dexter morgan
Hello List, I've a simple c project that uses semaphores. I've tried to include it inside the main.c #include #include #include #include #include #include #include #include #include #include but xcode won't to compile it. Anyone can help me? _

Re: NSXMLParser bug?

2008-09-11 Thread Ken Ferry
On Thu, Sep 11, 2008 at 2:23 PM, Ken Ferry <[EMAIL PROTECTED]> wrote: > Hi Graham, > > That's backwards.. only subclassers are concerned with designated > initializers. Someone creating an object can call any init method. > > Maybe it's easiest to describe by intent. > (1) Every class has at least

Re: NSXMLParser bug?

2008-09-11 Thread Ken Ferry
Hi Graham, That's backwards.. only subclassers are concerned with designated initializers. Someone creating an object can call any init method. Maybe it's easiest to describe by intent. (1) Every class has at least one, and possibly more, designated initializers. (2) When an object is created, e

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Randy Bradley
> The ³.mm² extension is required for source that contains both C++ and Objective-C, thus called Objective-C++. Not required for pure C++ source. A couple ideas: 1. Be sure to add the C++ source files to your target. (ie, look for the checkmark in the target column) 2. Any objective-c source t

RE: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread Gary L. Wade
In Mac OS X, if I had an object of type ABAddressBook, I would use the message "me". If I didn't like "me", I might try "setMe:". ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Shawn Erickson
On Thu, Sep 11, 2008 at 10:28 AM, Ed Immenschuh <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add > some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my > C++ files in a separate .mm files (as the document

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-11 Thread Benjamin Stiglitz
Just want to clarify this a bit. In the Bindings inspector, when I assign a value transformer, that gets applied to the Controller Key and then the Model Key Path portion applies to the transformed value. Am I understanding that correctly? The value transformer gets applied immediately bef

Re: First responder design question. Are controllers in the chain?

2008-09-11 Thread Seth Willits
On Sep 11, 2008, at 7:59 AM, David wrote: I've been conceptually thinking of the document as part of the model. The first responder chain in the document architecture goes through the view hierarchy and checks the document. View -> Window -> Window Delegate -> Window Controller -> Document N

Re: How do people typically implement dialog controllers?

2008-09-11 Thread Seth Willits
On Sep 10, 2008, at 11:53 PM, Graham Cox wrote: In Photoshop CS2 (which I have), previews are always within the dialog itself. In that case, it seems logical to me to make a temporary copy of your model for the dialog to modify and display as it needs. However, it sounds as if that isn't wh

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Marcus
11 sep 2008 kl. 19.28 skrev Ed Immenschuh: Hello, I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my C++ files in a separate .mm files (as the documentation says to), and my C++ headers

Re: NSArrayController fetchPredicate behaving badly

2008-09-11 Thread Jamie Hardt
Yeah that worked. Quirky is the word. On Sep 11, 2008, at 10:42 AM, Keary Suska wrote: 9/11/08 10:29 AM, also sprach [EMAIL PROTECTED]: I have two entities, "Reels" and "Scenes". Reels have many Scenes; reels have an "isHidden" attribute. The array controller I'm having trouble with fetche

Re: NSTask is Weird

2008-09-11 Thread J. Todd Slack
Thanks everyone, Yes, over thinking about it. I was escaping and quoting, etc. Works now! -Jason On Sep 11, 2008, at 8:48 AM, Clark Cox wrote: On Thu, Sep 11, 2008 at 4:03 AM, J. Todd Slack <[EMAIL PROTECTED]> wrote: Hi, I guess what I dont get is when you pass arguments that are not

Re: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread I. Savant
On Thu, Sep 11, 2008 at 2:09 PM, Lee, Frederick <[EMAIL PROTECTED]> wrote: > If you can only see me wince... > I was aware of 'me'; and searched the iPhone-nay SDK-nay (pig-latin) > literature for it. > Couldn't find it. > > So now I have to bother the Apple Engineers about this one; and other > qu

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Quite possibly - off to have go, Thank you, Many Thanks Amy Heavey On 11 Sep 2008, at 19:09, Jamie Hardt wrote: Oh... Is this what you mean? NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects]; foreach (id oneObjectInTable in objectsToLoopThru) {

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Randall Meadows
On Sep 11, 2008, at 11:28 AM, Ed Immenschuh wrote: Hello, I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my C++ files in a separate .mm files (as the documentation says to), and my C++ h

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
Oh... Is this what you mean? NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects]; foreach (id oneObjectInTable in objectsToLoopThru) { NSManagedObject *newObjectToStore = [NSEntityDescription insertNewObjectForEntityForName:@"

RE: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread Lee, Frederick
If you can only see me wince... I was aware of 'me'; and searched the iPhone-nay SDK-nay (pig-latin) literature for it. Couldn't find it. So now I have to bother the Apple Engineers about this one; and other questions. I hate to bother them; if I could use the forums. But alas, it's knock-knock t

Re: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread I. Savant
On Thu, Sep 11, 2008 at 1:50 PM, Lee, Frederick <[EMAIL PROTECTED]> wrote: > I don't see anything about 'me' or 'setMe' for the iPhone's AddressBook. > Is there an equivalent routine? Ah, the iPhone SDK ... (raises wand, taps podium, instruments at the ready): The iPhone SDK is under NDA and can

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Also, I don't have an array controller bound to the table view, the tableviews datasource outlet is set to the instance of my class that pulls the xml and processes it, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt wrote: Ah I see. XML on web -> your program -> sqlite st

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Thanks, I have got access to the datamodel, I've imported it into my xcode project, it's how to actually create and write the entity that i'm stuck on, all the examples i've found seem to use bindings and add buttons, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt wrote:

Trying to compile an ObjectiveC and C++ program in XCode 3.1

2008-09-11 Thread Ed Immenschuh
Hello, I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my C++ files in a separate .mm files (as the documentation says to), and my C++ headers are in a xxx.h file. When building the code, I ke

RE: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread Lee, Frederick
I don't see anything about 'me' or 'setMe' for the iPhone's AddressBook. Is there an equivalent routine? Ric. -Original Message- From: I. Savant [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 12:32 PM To: Lee, Frederick Cc: cocoa-dev@lists.apple.com Subject: Re: How do I id

Re: NSMutableArray, NSMutableDictionary memory managment

2008-09-11 Thread Jamie Hardt
I'd also hasten to remind that collections retain their objects, but if those objects are mutable, like NSMutableString, than anybody that holds a ref to them can change them at any time, so in some cases you do want to make deep or immutable copies of these objects, depending on context.

Re: NSArrayController fetchPredicate behaving badly

2008-09-11 Thread Keary Suska
9/11/08 10:29 AM, also sprach [EMAIL PROTECTED]: > I have two entities, "Reels" and "Scenes". Reels have many Scenes; > reels have an "isHidden" attribute. The array controller I'm having > trouble with fetches scenes that are in reels that are not hidden, > thus it's fetch predicate (in IB, and

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
Ah I see. XML on web -> your program -> sqlite store that someone else's program reads/writes. Looping over the data in the table should just be a matter of going through all of the items in the table's bound NSArrayController: //code NSArray *objectsToLoopThru = [myArrayControllerWithReco

How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread Lee, Frederick
I need to grab my own ABPersonRecord; but I need an identifier of the owner of AddressBook. What would be such an identifier? Ric. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: How do I identify Myself within AddressBook Progammatically?

2008-09-11 Thread I. Savant
On Thu, Sep 11, 2008 at 1:24 PM, Lee, Frederick <[EMAIL PROTECTED]> wrote: > I need to grab my own ABPersonRecord; but I need an identifier of the > owner of AddressBook. > > What would be such an identifier? Always read/search the docs first: "Accessing the User's Record" http://developer.appl

[Moderator] [Do not respond on list] Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Scott Anguish
There is no question it is off-topic and offensive. It hit the xcode list as well. It's obviously a throw away account gmail account, but it's been unsubscribed now. This happened in the first 24 hours I had experimented with flipping the 'new users are moderated' switch back to off for t

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
I need to add data from the website to the sqlite file created/used by the cocoa application. I can pull the data in XML out of the website, and display it in a tableview (Aaron Hillegass sample code), but now I need to add that data to my app (stored in an sqlite file) each row of the ta

Re: NSMutableArray, NSMutableDictionary memory managment

2008-09-11 Thread Jamie Hardt
All of the collection classes -retain and -release objects that are added to them, so you can release them in your code and as long as you are retaining or otherwise holding onto the collection itself, the collection will keep a strong ref to the objects it holds. http://developer.apple.com

NSMutableArray, NSMutableDictionary memory managment

2008-09-11 Thread Scott Price
I'm wondering how NSMutableArray and NSMutableDictionary handle objects if you add and object to them. I'm working on an iphone where memory management is important and kinda iffy how these objects work. Say if you allocate a temp object and add it to an NSMutableArray and then release it a

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
How does the sqlite file relate to pulling XML from your website? I do not follow you there. On Sep 11, 2008, at 1:44 AM, Amy Heavey wrote: Hi, Sorry for the newbie question, I'm trying to write an app to access/edit data held in an sqlite file generated by another coredata app. I need t

Re: Inter-machine notifications

2008-09-11 Thread Kirk Kerekes
I would look at Distributed Objects again. It really isn't intrinsically "client-server" oriented any more than Cocoa is. A client-server architecture is just one way to use the distributed object functionality. It does tend to be easier to have a single- source-for-truth to keep things orga

creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Hi, Sorry for the newbie question, I'm trying to write an app to access/edit data held in an sqlite file generated by another coredata app. I need to be able to access the data in ways not possible in the original app (not created by me) Following some advice from this list, I have importe

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Frank Illenberger
Am 11.09.2008 um 18:15 schrieb Bill Bumgarner: On Sep 11, 2008, at 8:47 AM, Frank Illenberger wrote: As I understand it, try/catch blocks should be very fast (zero cost) in the 64 bit evironment. As I can't observe the generation of any exceptions, there has to be some other reason for the

NSArrayController fetchPredicate behaving badly

2008-09-11 Thread Jamie Hardt
I'm having some difficulty with an NSArrayController that fetches a subset of all the entities in my NSManagedObjectContext, and I think it might be something simple, but I haven't been able to put my finger on it... I have two entities, "Reels" and "Scenes". Reels have many Scenes; reel

Re: Regarding the array controller

2008-09-11 Thread Ken Thomases
On Sep 11, 2008, at 4:07 AM, vipin wrote: I have an xcode version 3.1 and Mac OSX 10.5.4. While I am through with a program on array controller and added a push button in the IB and save the file the following errors are shown in Review.. Push Button(remove) 387 Binding unavailable B

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-11 Thread Benjamin Stiglitz
Just want to clarify this a bit. In the Bindings inspector, when I assign a value transformer, that gets applied to the Controller Key and then the Model Key Path portion applies to the transformed value. Am I understanding that correctly? The value transformer gets applied immediately bef

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Bill Bumgarner
On Sep 11, 2008, at 8:47 AM, Frank Illenberger wrote: As I understand it, try/catch blocks should be very fast (zero cost) in the 64 bit evironment. As I can't observe the generation of any exceptions, there has to be some other reason for the slow performance. I can't find any documentation

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Bill Bumgarner
On Sep 11, 2008, at 6:07 AM, Matt Gough wrote: Dunno, maybe now that the Obj-C exception ABI is the same as the C++ one for 64-bit apps, there is a lot of extra stuff that needs preparing in case the exception is going to be caught by some C++ code. This is a known issue and has been addre

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Horst Hoesel
don't come to Germany then. Except for the political signs in the streets its about the same here. As if we didn't have enough of our own politicians to be bothered by ;) Am 11.09.2008 um 17:43 schrieb Jamie Daniel: Agreed, sorry. Sometimes I forget that there are time zone differences bet

Re: NSTask is Weird

2008-09-11 Thread Clark Cox
On Thu, Sep 11, 2008 at 4:03 AM, J. Todd Slack <[EMAIL PROTECTED]> wrote: > Hi, > > I guess what I dont get is when you pass arguments that are not simple like: > >>[task setLaunchPath: @"/bin/ls"]; >>[task setArguments: [NSArray arrayWithObjects: @"ls", @"-al", @"/", >> nil]]; > >

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Frank Illenberger
As I understand it, try/catch blocks should be very fast (zero cost) in the 64 bit evironment. As I can't observe the generation of any exceptions, there has to be some other reason for the slow performance. I can't find any documentation about objc_addExceptionHandler, so I don't know if i

Re: BOOL array

2008-09-11 Thread Clark Cox
On Thu, Sep 11, 2008 at 6:22 AM, dreamcat7 <[EMAIL PROTECTED]> wrote: > > On 11 Sep 2008, at 13:08, Jean-Daniel Dupas wrote: >> >> That's fine if you love to reinvent the wheel, but that exactly the >> interface provided by CFMutableBitVector. >> >> CFBitVectorCreateMutable() >> CFBitVectorSetBitAt

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Jamie Daniel
Agreed, sorry. Sometimes I forget that there are time zone differences between us. I think I am just overdone with the US election coverage on every station, the conspiracy theories on the History Channel, the newspaper stories, the emails to VOTE for [insert name], the junk mail in the post box

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Jaime Magiera
On Sep 11, 2008, at 10:55 AM, Jamie Daniel wrote: This kind of Relax man. Seriously. Every once in a while something slips through the cracks. Surely one silly email isn't enough to ruin your day. Jaime Magiera Sensory Research http://www.sensoryresearch.net

Re: BOOL array

2008-09-11 Thread Michael Ash
On Wed, Sep 10, 2008 at 12:28 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > On Wed, Sep 10, 2008 at 9:18 AM, Joel Norvell <[EMAIL PROTECTED]> wrote: >> OK. I think I've got it. One could use an increasing sequence of integers, >> letting evenness and oddness determine the boolean state at any

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread I. Savant
On Thu, Sep 11, 2008 at 10:55 AM, Jamie Daniel <[EMAIL PROTECTED]> wrote: > When someone violates the NDA for the iPhone, a stern warning is issued and > the yelping will ensue. > Where is the voice of the moderator on this? Calm down; the list is not moderated 24/7 and the moderator is located

Re: NSTask is Weird

2008-09-11 Thread Michael Ash
On Thu, Sep 11, 2008 at 7:03 AM, J. Todd Slack <[EMAIL PROTECTED]> wrote: > Hi, > > I guess what I dont get is when you pass arguments that are not simple like: > >>[task setLaunchPath: @"/bin/ls"]; >>[task setArguments: [NSArray arrayWithObjects: @"ls", @"-al", @"/", >> nil]]; > >

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Sherm Pendley
On Thu, Sep 11, 2008 at 10:55 AM, Jamie Daniel <[EMAIL PROTECTED]> wrote: > Where is the voice of the moderator on this? "This" was posted around midnight last night. It's now 8AM in California, and programmers as a group are not known for being early risers. He's probably just now arriving at w

Core Data Migration Progress

2008-09-11 Thread Doug Penny
I have a core data store that I am migrating using the default/automatic migration process. It seems to work very smoothly, but takes a minute or two to complete. I would like to provide some type of feedback to the user to let them know what is going on and possibly a progress indicator. Is thi

First responder design question. Are controllers in the chain?

2008-09-11 Thread David
I'm just starting to delve into the first responder chain to handle menu actions. My conceptual understanding of MVC is that the controller is the one who determines what to do with actions. When someone wants to do something the controller is told by a control in the view, it updates the model an

Re: 9/11 was an INSIDE JOB!

2008-09-11 Thread Jamie Daniel
This kind of BS should not be allowed on this forum. This forum is for technical discussions not political publication. When someone violates the NDA for the iPhone, a stern warning is issued and the yelping will ensue. Where is the voice of the moderator on this? If this is going to be tolera

RE: NSXMLParser bug?

2008-09-11 Thread Karan, Cem (Civ, ARL/CISD)
Yup, it does. I'll have to keep that in mind the future. Thanks for saving me from writing a useless bug report! Thanks, Cem Karan -Original Message- From: Graham Cox [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 9:10 AM To: Karan, Cem (Civ, ARL/CISD) Cc: cocoa-dev@list

Re: Rounding very small numbers.

2008-09-11 Thread Keary Suska
9/11/08 2:11 AM, also sprach [EMAIL PROTECTED]: > I attempted to do that with the following code: > > NSDecimalNumberHandler* roundingBehavior = [NSDecimalNumberHandler > decimalNumberHandlerWithRoundingMode:NSRoundPlain scale:5]; > > NSDecimalNumber *roundFloat = NSDecimalNumber alloc] >

Re: NSPredicate BETWEEN inclusive or exclusive?

2008-09-11 Thread Keary Suska
9/11/08 6:58 AM, also sprach [EMAIL PROTECTED]: > In reading the Predicate Programming Guide, the BETWEEN operator seems > to indicate that the $LOWER and $UPPER are not included in the > comparison. Can someone confirm or correct my reading? Exclusive. It is clear from the example shown below th

Re: BOOL array

2008-09-11 Thread Peter N Lewis
At 14:22 +0100 11/9/08, dreamcat7 wrote: On 11 Sep 2008, at 13:08, Jean-Daniel Dupas wrote: And it probably does it better as it will not waste 7 bits for each option. No, in a CFBitVector there is 4-bytes for each bit. CFBit A binary value of either 0 or 1. typedef UInt32 CFBit; The CFBi

Re: Do I Need Multiple NSArrayControllers For This?

2008-09-11 Thread Jamie Phelps
On Wed, Sep 10, 2008 at 8:40 AM, Benjamin Stiglitz <[EMAIL PROTECTED]> wrote: You might want a value transformer on the arrangedObjects of the array > controller: one that just returns the count, and one that returns the count > as filtered by a predicate. > Just want to clarify this a bit. In th

Re: BOOL array

2008-09-11 Thread Chris Holloway
No, CFBit is just declared to be used in the interface of CFBitVector. Look at http://http://src.gnu-darwin.org/DarwinSourceArchive/expanded/CF/CF-299/Collections.subproj/CFBitVector.c, in particular the function __CFBitVectorBit. Each value has 1 bit of overhead. Anything more is a needless waste

Re: BOOL array

2008-09-11 Thread dreamcat7
On 11 Sep 2008, at 13:08, Jean-Daniel Dupas wrote: That's fine if you love to reinvent the wheel, but that exactly the interface provided by CFMutableBitVector. CFBitVectorCreateMutable() CFBitVectorSetBitAtIndex() CFBitVectorGetBitAtIndex() And it probably does it better as it will not w

Re: NSXMLParser bug?

2008-09-11 Thread Graham Cox
On 11 Sep 2008, at 10:50 pm, Karan, Cem (Civ, ARL/CISD) wrote: I thought that all initializers had to call through the designated initializer, which means that init should be overridden to call initWithData:. Am I wrong? Re-reading the docs: file:///Developer/Documentation/DocSets/com.ap

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Matt Gough
On 11 Sep 2008, at 14:49, Frank Illenberger wrote: I breaked at objc_addExceptionHandler and it gets called a lot. Here are some example traces: ... I guess this is normal behavior as these are regular cocoa calls. But why does this consume so much CPU time? Cheers Dunno, maybe now t

NSPredicate BETWEEN inclusive or exclusive?

2008-09-11 Thread Jamie Phelps
In reading the Predicate Programming Guide, the BETWEEN operator seems to indicate that the $LOWER and $UPPER are not included in the comparison. Can someone confirm or correct my reading? Thanks, Jamie ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: NSTask is Weird

2008-09-11 Thread Sherm Pendley
On Thu, Sep 11, 2008 at 7:03 AM, J. Todd Slack < [EMAIL PROTECTED]> wrote: > Hi, > > I guess what I dont get is when you pass arguments that are not simple > like: > > [task setLaunchPath: @"/bin/ls"]; >>[task setArguments: [NSArray arrayWithObjects: @"ls", @"-al", @"/", >> nil]];

RE: NSXMLParser bug?

2008-09-11 Thread Karan, Cem (Civ, ARL/CISD)
I thought that all initializers had to call through the designated initializer, which means that init should be overridden to call initWithData:. Am I wrong? Thanks, Cem Karan -Original Message- From: Graham Cox [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2008 8:19 AM To: K

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Frank Illenberger
Am 11.09.2008 um 14:04 schrieb Jean-Daniel Dupas: Le 11 sept. 08 à 13:01, Frank Illenberger a écrit : Hi there, I migrated an existing cocoa application to run under x86_64 with Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit but when started in x86_64 mode, it runs ab

Re: NSXMLParser bug?

2008-09-11 Thread Graham Cox
On 11 Sep 2008, at 9:57 pm, Karan, Cem (Civ, ARL/CISD) wrote: Hi all, I wanted confirmation of this by someone else before I filed a useless bug report. I'm using NSXMLParser in a slightly non- standard way, just so I can slog through my unit tests quickly. I instantiate it like this: N

Cocoa Installer classes

2008-09-11 Thread Bill Royds
On 11-Sep-08, at 05:53 , [EMAIL PROTECTED] wrote: From: Neil Brewitt <[EMAIL PROTECTED]> Date: September 11, 2008 03:55:29 GMT-04:00 To: Cocoa Developers Subject: Re: OT: Installing Apps On 10 Sep 2008, at 20:41, Steven W Riggins wrote: I for one, being a Mac user since Feb, 1984, am dismay

Re: BOOL array

2008-09-11 Thread Jean-Daniel Dupas
Le 11 sept. 08 à 13:32, dreamcat7 a écrit : Yes the NSMutableData needs this category method then it work. @interface NSMutableData (charArray) - (char*)char; @end @implementation NSMutableData (charArray) - (char*)char { char * foo = self.mutableBytes; return foo; } @end

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Jean-Daniel Dupas
Le 11 sept. 08 à 13:01, Frank Illenberger a écrit : Hi there, I migrated an existing cocoa application to run under x86_64 with Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit but when started in x86_64 mode, it runs about 3-4 times slower. A shark profile reveals the fo

NSXMLParser bug?

2008-09-11 Thread Karan, Cem (Civ, ARL/CISD)
Hi all, I wanted confirmation of this by someone else before I filed a useless bug report. I'm using NSXMLParser in a slightly non-standard way, just so I can slog through my unit tests quickly. I instantiate it like this: NSXMLParser *dummyParser = [[NSXMLParser alloc] init]; Rather than use

Re: Rounding very small numbers.

2008-09-11 Thread Georg Seifert
cant you just multiply with 1, round it and divide 1? g Am 11.09.2008 um 10:11 schrieb Ryan Ragona: Hey all, I've been scouring the archives, but coming up without any solution that seems to work in my application. Here is the issue: I have some tiny numbers, like -0.00116916,

Re: Accepting files dragged from iTunes in a Cocoa app

2008-09-11 Thread Stefan Haller
Excellent! Thanks a lot, this works well for me too. I didn't know about the "CorePasteboardFlavorType" mechanism, and I couldn't find any documentation about it, so I suppose this isn't guaranteed to work in the future. Best, Stefan Stephen F. Booth <[EMAIL PROTECTED]> wrote: > Stefan, >

Re: BOOL array

2008-09-11 Thread dreamcat7
Yes the NSMutableData needs this category method then it work. @interface NSMutableData (charArray) - (char*)char; @end @implementation NSMutableData (charArray) - (char*)char { char * foo = self.mutableBytes; return foo; } @end + (NSMutableData*)defaultOptions { NSMu

Re: NSTask is Weird

2008-09-11 Thread J. Todd Slack
Hi, I guess what I dont get is when you pass arguments that are not simple like: [task setLaunchPath: @"/bin/ls"]; [task setArguments: [NSArray arrayWithObjects: @"ls", @"-al", @"/", nil]]; What about a command that takes arguments like: --segments /Users/slack/music/iTunes/iTu

Preferencepane and user defaults

2008-09-11 Thread a2z
Hi I need to know if its possible to use NSUserDefaultsController to create a default plist from a NSPreferencePane subclass. I tried this NSUserDefaults *_defaults; _defaults = [ [ NSUserDefaultsController sharedUserDefaultsController ] defaults ]; // setObject ... [_defaults synchro

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Frank Illenberger
Hi there, I migrated an existing cocoa application to run under x86_64 with Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit but when started in x86_64 mode, it runs about 3-4 times slower. A shark profile reveals the following hot traces: 8.9%libgcc_s.1.dylib_U

Re: BOOL array

2008-09-11 Thread dreamcat7
" use NSMutableData objects with 1 byte for each 0 or 1 value. You can then get the BOOL values as 'data.bytes [index]', set them with 'data.mutableBytes [index] = someBool' and resize the array with 'data.length = someLength'. In terms of source code, that's about as minimalistic as it gets

Inter-machine notifications

2008-09-11 Thread Steve Steinitz
Hello, We have a Core Data app running on 5 computers. We've used a variety of kludges and nasty overkills to keep the data consistent on the shared sqlite database. Now, however, it appears that we will need some kind of notifications for critical inventory changes to the database. I imp

Re: Cocoa application running very slow under 64 bit

2008-09-11 Thread Jean-Daniel Dupas
Le 11 sept. 08 à 10:44, Frank Illenberger a écrit : Hi there, I migrated an existing cocoa application to run under x86_64 with Xcode 3.1 / Mac OS 10.5.4. The app still runs fine under 32 bit but when started in x86_64 mode, it runs about 3-4 times slower. A shark profile reveals the foll

Core Data "Save as" versions

2008-09-11 Thread Ken Tabb
Morning folks, I was reading the Core Data version migration documentation, and it seems easy to use (haven't put it into practice yet as I was reading it on a sunbed on hols, and I have enough trouble sneaking programming books into the shared luggage, let alone the laptop etc.). The doc

  1   2   >