Re: Seemingly Documentation confusion?

2009-10-30 Thread Scott Anguish
GRRR.. This is going to be the case will NSDraggingInfo as well, since both declare protocols. in fact it might be more widespread than that. I’ll have to check. I’ve fixed these two docs. You’ll see them around turkey time. The reason? optional and required keywords were added to 10.6. however

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 11:54 PM, Scott wrote: > Thanks for the response Kyle. I will ask Rogue. This is how you send > commands via AS > >        tell application "Airfoil" > >                -- Connect to Airport Express >                connect to (every speaker whose name is "Computer") > >  

xml object memory issue

2009-10-30 Thread XiaoGang Li
The piece of code I want to discuss is followed: #import int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; for(int i=0;i<5000;i++) { NSURL *inAbsoluteURL = [[[NSURL alloc] initFileURLWithPath:@"the path to one xml file"] a

Re: xml object memory issue

2009-10-30 Thread Roland King
Autoreleased objects are only autoreleased when the pool is drained. It is more than likely that the XMLDocument initWithContentsOfURL makes a lot of temporary objects which end up on the autorelease pool but they won't actually be released until the end of your loop. Put another pool alloc at

Re: xml object memory issue

2009-10-30 Thread Kai Brüning
On 30.10.2009, at 08:36, Roland King wrote: Autoreleased objects are only autoreleased when the pool is drained. It is more than likely that the XMLDocument initWithContentsOfURL makes a lot of temporary objects which end up on the autorelease pool but they won't actually be released until

Re: xml object memory issue

2009-10-30 Thread XiaoGang Li
thanks very much. On Fri, Oct 30, 2009 at 3:39 PM, Kai Brüning wrote: > > On 30.10.2009, at 08:36, Roland King wrote: > > Autoreleased objects are only autoreleased when the pool is drained. It is >> more than likely that the XMLDocument initWithContentsOfURL makes a lot of >> temporary objects

Re: Trying blocks

2009-10-30 Thread Jean-Daniel Dupas
Le 30 oct. 2009 à 07:33, Greg Parker a écrit : On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: It compiles fine but the load fails with... "__NSConcreteGlobalBlock", referenced from: ___block_holder_tmp_1.1207 in Controller.o ld: symbol(s) not found collect2: ld returned 1 exit status

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Scott
I have read over the developer documents but am still confused. Do I need to look at "classForScriptingClass"? I was playing around with this but it wasn't making a lot of sense of sense in this instance. I could understand if I was trying to send the speaker to an object but I'm trying to run the

Re: The ghost in the bundle

2009-10-30 Thread Pierre Berloquin
I think I need a copy files build phase because I plan successive versions, each with its own bunch of specific pictures, and all of them distinct from the basic navigation pictures and icons. Starting each time from scratch doesn't seem to be the right iPhone philosophy so there must be a catch s

Re: The ghost in the bundle

2009-10-30 Thread Ron Fleckner
Ok. By the way, did Graham's suggestion to do a clean and build overcome your 'ghost in the bundle' problem? Ron On 30/10/2009, at 8:17 PM, Pierre Berloquin wrote: I think I need a copy files build phase because I plan successive versions, each with its own bunch of specific pictures, and

Re: Trying blocks

2009-10-30 Thread Bill Cheeseman
On Oct 28, 2009, at 8:56 PM, Charlie Dickman wrote: It compiles fine but the load fails with... "__NSConcreteGlobalBlock", referenced from: ___block_holder_tmp_1.1207 in Controller.o ld: symbol(s) not found collect2: ld returned 1 exit status Can anyone explain this and help me with wha

Re: Trying blocks

2009-10-30 Thread Greg Parker
On Oct 30, 2009, at 1:40 AM, Jean-Daniel Dupas wrote: Le 30 oct. 2009 à 07:33, Greg Parker a écrit : On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: It compiles fine but the load fails with... "__NSConcreteGlobalBlock", referenced from: ___block_holder_tmp_1.1207 in Controller.o ld: sym

Programmatically add a UISearchBar

2009-10-30 Thread Nala Gnirut
Hi all, I'm trying to programmatically add UISearchBar to my UITableView header: - (void)viewWillAppear:(BOOL)animated { [...] if (!self.tableView.tableHeaderView) { // Add the search bar searchBar = [[UISearchBar alloc] i

sizeWithAttributes Cutting Off Drop Shadow, Italic Mask?

2009-10-30 Thread Chunk 1978
does sizeWithAttributes not take into account the offset of an NSDropShadow or italic font mask? i have a dictionary of attributes for a string, and i'm trying to produce an image for the drag that doesn't crop the image with these attributes. NSSize stringSize = [string sizeWithAttributes:attrib

Re: sizeWithAttributes Cutting Off Drop Shadow, Italic Mask?

2009-10-30 Thread Ricky Sharp
On Oct 30, 2009, at 10:10 AM, Chunk 1978 wrote: does sizeWithAttributes not take into account the offset of an NSDropShadow or italic font mask? i have a dictionary of attributes for a string, and i'm trying to produce an image for the drag that doesn't crop the image with these attribut

Re: Trying blocks

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 3:08 AM, Bill Cheeseman wrote: As far as I have been able to determine, you cannot include blocks- based code in a binary that runs on Leopard or older as well as on Snow Leopard. Testing for Leopard and older and branching around the blocks code does not solve the probl

Re: Trying blocks

2009-10-30 Thread Dave DeLong
PLBlocks - http://code.google.com/p/plblocks/ Dave On Oct 30, 2009, at 9:28 AM, Jens Alfke wrote: Also, there is an open-source implementation of blocks for 10.5, including a compatible copy of the Clang compiler. I don't recall the name/URL of the package but it shouldn't be hard to find

EndianU32_NtoB

2009-10-30 Thread gMail.com
In the past I have successfully used EndianU32_NtoB to read a "long" on a PPC machine. Now I need to read and write an array of "unsigned int" and an array of "float". May you please tell me how to do? Thanks -- LL ___ Cocoa-dev mailing list (Cocoa-d

Re: EndianU32_NtoB

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 8:56 AM, gMail.com wrote: In the past I have successfully used EndianU32_NtoB to read a "long" on a PPC machine. Now I need to read and write an array of "unsigned int" and an array of "float". May you please tell me how to do? Just write a 'for' loop to convert each e

Re: createbackupPath from boost library not working for MAC

2009-10-30 Thread Jens Alfke
On Oct 29, 2009, at 11:03 PM, Nikhil Khandelwal wrote: I am running unit test cases to check the functionality. In this I am checking createbackupPath of boost library. Its working well for windows platform but not able to create backupPath for MAC. It throws some exception If you want h

Re: PolKit for Leopard and later

2009-10-30 Thread Jens Alfke
On Oct 29, 2009, at 6:25 AM, Pierre-Olivier Latour wrote: The entire project is available open-source under GPLv3 license hosted on Google Code. If you are interested in using PolKit in a non-open- source project and need a commercial license, please contact me. This sounds like great code

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 4:56 PM, gMail.com said: >In the past I have successfully used EndianU32_NtoB to read a "long" on a >PPC machine. Now I need to read and write an array of "unsigned int" and an >array of "float". May you please tell me how to do? For floats Apple provides no API, but you can use a uni

Re: createbackupPath from boost library not working for MAC

2009-10-30 Thread Kyle Sluder
On Oct 30, 2009, at 9:23 AM, Jens Alfke wrote: Kyle, that was pretty rude. I would wait until the third or fourth message to start flaming someone over their capitalization. And lots of people don't understand which mailing list to use; we don't need to flame them on a first offense. Sor

Re: EndianU32_NtoB

2009-10-30 Thread Kyle Sluder
On Oct 30, 2009, at 9:35 AM, "Sean McBride" wrote: For floats Apple provides no API, but you can use a union like this: See CFSwappedFloat64: http://developer.apple.com/mac/library/DOCUMENTATION/CoreFoundation/Conceptual/CFMemoryMgmt/Tasks/ByteSwapping.html#//apple_ref/doc/uid/20001155-CJB

Re: PolKit for Leopard and later

2009-10-30 Thread Alastair Houghton
On 29 Oct 2009, at 13:25, Pierre-Olivier Latour wrote: The entire project is available open-source under GPLv3 license hosted on Google Code. If you are interested in using PolKit in a non-open- source project and need a commercial license, please contact me. For more info, please follow thi

Re: EndianU32_NtoB

2009-10-30 Thread gMail.com
Cool. Thanks. I did the following, either when I read from the disk and when I write to the disk Read unsigned int in case of PPC outValue[i] = EndianU32_NtoB(inValue[i]); Write unsigned int in case of PPC outValue[i] = EndianU32_BtoN(inValue[i]); Read float in case of PPC

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 9:48 AM, Kyle Sluder said: >> For floats Apple provides no API, but you can use a union like this: > >See CFSwappedFloat64: http://developer.apple.com/mac/library/ >DOCUMENTATION/CoreFoundation/Conceptual/CFMemoryMgmt/Tasks/ >ByteSwapping.html#//apple_ref/doc/uid/20001155-CJBEHAAG Ah

Re: EndianU32_NtoB

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 10:31 AM, Sean McBride wrote: I don't get why for ints they have host<->big, host<->little, etc. for the floats they don't. Instead they have those weird host<- swapped. And though they take floats, they return structs. I think this is to avoid storing swapped floats i

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 6:29 PM, gMail.com said: >Cool. Thanks. I did the following, either when I read from the disk and when >I write to the disk > >Read unsigned int in case of PPC >outValue[i] = EndianU32_NtoB(inValue[i]); > >Write unsigned int in case of PPC >outValue[i] = EndianU32_BtoN(

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-30 Thread Sean McBride
On 10/29/09 5:23 PM, Ben Trumbull said: >> Even if I do [scene addTargetsWeak:[scene targetsWeak]] I get the error. >> >> Does this make any sense to anyone? > >The only caveat is you cannot change relationships from within - >awakeFromFetch. This is documented: Ben, This is something I know an

Slightly OT

2009-10-30 Thread Michael de Haan
Seems that Cocoabuilder has been down a while now. Anyone know who runs this and how we can send a message that this is an issue? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Creating a tiled image from resource images

2009-10-30 Thread Michael Abendroth
Hi everyone, i would like to (programmatically) create a tiled image from resource images I created. I will have to use 9 tiles to create the image I want. I think I read somewhere that some methods exist in Cocoa that make this very easy, but I cannot find that reference anymore, neither anything

Re: PolKit for Leopard and later

2009-10-30 Thread Jean-Daniel Dupas
Le 30 oct. 2009 à 17:25, Jens Alfke a écrit : On Oct 29, 2009, at 6:25 AM, Pierre-Olivier Latour wrote: The entire project is available open-source under GPLv3 license hosted on Google Code. If you are interested in using PolKit in a non-open- source project and need a commercial license,

Re: Creating a tiled image from resource images

2009-10-30 Thread I. Savant
On Oct 30, 2009, at 2:27 PM, Michael Abendroth wrote: i would like to (programmatically) create a tiled image from resource images I created. I will have to use 9 tiles to create the image I want. I think I read somewhere that some methods exist in Cocoa that make this very easy, but I cannot fi

loading images from external disk

2009-10-30 Thread Gabriel Zachmann
I am loading images from an external disk, about one image per second. My code looks like this: filename_ = [list_ objectAtIndex: index_]; NSLog( @"orig filename = %@", filename_ ); NSURL * url = [NSURL fileURLWithPath: filename_ isDirectory: NO]; // this escapes any characters that

Re: EndianU32_NtoB

2009-10-30 Thread gMail.com
Sean, time ago I wrote and used this routine to "read" a float on a PPC. But, as I understand, it will never work to "write" the file. Any idea? float ConvertEndianf(float infloat) { #ifdef __LITTLE_ENDIAN__ return infloat; #else union floatunion { unsigned char part[4]; fl

RE: Cocoa bindings problem

2009-10-30 Thread Squ Aire
Thanks for the tip. However, the value transformer idea did not work. Even though it ended up showing exactly the same date (the value transformer just strips the time from the date) for each row, selecting multiple rows still leaves us with "Multiple values" in the text field. > > My problem

Re: Cocoa bindings problem

2009-10-30 Thread I. Savant
On Oct 30, 2009, at 3:01 PM, Squ Aire wrote: Thanks for the tip. However, the value transformer idea did not work. Even though it ended up showing exactly the same date (the value transformer just strips the time from the date) for each row, selecting multiple rows still leaves us with "Mul

Re: Core Data not fulfill a fault (now: observer) after Save As

2009-10-30 Thread Jerry Krinock
On 2009 Oct 14, at 12:47, Jim Thomason wrote: On Wed, Oct 14, 2009 at 2:25 PM, Ben Trumbull wrote: The short description is this - I have a document based CoreData app. I can carefully craft a set of data. I then open the document, select a particular record, and do a Save As. This works

Re: loading images from external disk

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 11:38 AM, Gabriel Zachmann wrote: Now, one user has reported that, occasionally, CGImageSourceCreateWithURL() fails -- I can tell from the log I received. I have never seen a case where -fileURLWithPath has failed. Maybe the file doesn't contain valid image data. The

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Scott
Through some help I was able to get this resolved. My problem was I didn't look at SBElementArray closely enough. I thought it was only used to get objects not pass them back to an application. Makes sense that Scripting Bridge needs to use it's own array's now that I think about it. I was trying t

Inconsistency in handling of slashes and colons (bug in componentsJoinedByString ?)

2009-10-30 Thread Gabriel Zachmann
I think I've found an inconsistency in Cocoa's handling of slashes and colons when handling path names. Or, maybe someone could correct me, please. I retrieve a numer of files from a Spotlight query and store them in an array. Then, I print the file paths, and get something like this: 0. fi

RE: Cocoa bindings problem

2009-10-30 Thread Squ Aire
The test app I made contains no code except for the value transformer. The stuff that is not code is just a Core Data model with one entity called "User", with two attributes "name" (string) and "lastLogin" (date). The IB stuff is just one array controller bound to the app delegate's MOC with m

RE: Cocoa bindings problem

2009-10-30 Thread Squ Aire
My last message seems to have messed up newlines. Sorry about that. I will now try again. The test app I made contains no code except for the value transformer. The stuff that is not code is just a Core Data model with one entity called "User", with two attributes "name" (string) and "lastLogi

Re: Cocoa bindings problem

2009-10-30 Thread Sean McBride
On 10/30/09 7:01 PM, Squ Aire said: >Thanks for the tip. However, the value transformer idea did not work. >Even though it ended up showing exactly the same date (the value >transformer just strips the time from the date) for each row, selecting >multiple rows still leaves us with "Multiple values

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 12:55 PM, Scott wrote: > Through some help I was able to get this resolved. My problem was I > didn't look at SBElementArray closely enough. I thought it was only > used to get objects not pass them back to an application. Makes sense > that Scripting Bridge needs to use it

Re: Cocoa bindings problem

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 1:26 PM, Sean McBride wrote: > Instead of a value transformer, in your NSManagedObject subclass add a > new method called 'timelessDate' which returns a modified version of > your 'date' attribute.  Then bind your table to 'timelessDate' instead > of 'date'.  Also use keyPa

Re: Cocoa bindings problem

2009-10-30 Thread Sean McBride
On 10/30/09 1:34 PM, Kyle Sluder said: >> Instead of a value transformer, in your NSManagedObject subclass add a >> new method called 'timelessDate' which returns a modified version of >> your 'date' attribute.  Then bind your table to 'timelessDate' instead >> of 'date'.  Also use keyPathsForValu

What's the friendliest way to restart the Dock?

2009-10-30 Thread David Riggle
My app uses an NSDockTilePlugin. When I update my app via Sparkle, I want the new dock plug-in to be loaded. Unfortunately, the SystemUIServer has already loaded the old plug-in and ignores the new plug-in. Ditto for the Dock. There's no API that I've found to force a dock plug-in to be rel

Re: What's the friendliest way to restart the Dock?

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 1:47 PM, David Riggle wrote: > To flush out the old plug-in I've been doing "killall SystemUIServer Dock". > That works, but the Dock's current state is lost (minimized windows, etc.). > Is there a friendlier way to restart the Dock so it won't lose its current > state? Do

Re: What's the friendliest way to restart the Dock?

2009-10-30 Thread Sean McBride
On 10/30/09 1:47 PM, David Riggle said: >My app uses an NSDockTilePlugin. When I update my app via Sparkle, I >want the new dock plug-in to be loaded. Unfortunately, the >SystemUIServer has already loaded the old plug-in and ignores the new >plug-in. Ditto for the Dock. There's no API that I've fo

Re: Inconsistency in handling of slashes and colons (bug in componentsJoinedByString ?)

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 1:09 PM, Gabriel Zachmann wrote: 0. file = w: slash/detail_soldiers.jpg 1. file = w: slash/lot2.jpg 2. file = 2005-03-20 11-59-13.NEF etc. [imagefiles_ componentsJoinedByString: @"\n"] and print the result, and I get joined names = w\n slash/detail_soldiers.jpg\nw\n sl

Re: Inconsistency in handling of slashes and colons (bug in componentsJoinedByString ?)

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 1:09 PM, Gabriel Zachmann wrote: > I retrieve a numer of files from a Spotlight query and store them in an > array. Could you post your code for this, please? It's really hard to tell from your formatting whether you have an array of strings "0. file =…" or if that's just

Other Linker Flag all_load removes symbols in Instruments?

2009-10-30 Thread Eric Hermanson
Hello, I have been using Instruments successfully thus far, but I believe a recent change I made to Other Link Flags is causing the symbol information to disappear when running Leaks and CPU Sampler. I am using a 3rd party library on the iPhone that requires the -all_load flag to be turn

Re: Scripting Bridge running method passing an array

2009-10-30 Thread has
Kyle Sluder wrote On Thu, Oct 29, 2009 at 11:54 PM, Scott wrote: Thanks for the response Kyle. I will ask Rogue. This is how you send commands via AS tell application "Airfoil" -- Connect to Airport Express connect to (every speaker whose name is "Compute

Re: Can't Remove Observer Was: Re: Core Data not fulfill a fault (now: observer) after Save As

2009-10-30 Thread John Bishop
I have yet to find the reporting of this exception to be in error in Mac OS X 10.6. It's a real exception that you should fix. I HAVE found that Mac OS X 10.5.8 and earlier sometimes failed to report incorrect removal (or more commonly, double-removal) of an observer. When you suggest th

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 2:35 PM, has wrote: > No, the OP's code is passing a *single* reference that identifies *all* of > the speaker objects that match the specified condition. No. Here is the OP's code: NSArray *setTheSpeaker; setTheSpeaker = [[NSArray alloc] initWithObjects:connectToT

making the NSScrollView align its subview to the top-left corner

2009-10-30 Thread Gustavo Pizano
Hello, I have placed a NSScrollView, and its subview its a custom view that contains some elements. Now I have set in the NSScrollView to autoresize with the superview, and maintain all 4 margins, and the subview I have set it to maintain top and left margin, when I resize the window the

Re: making the NSScrollView align its subview to the top-left corner

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 2:53 PM, Gustavo Pizano wrote: > Any ideas what Im missing? Did you perform a web search before asking the list? Searching Google for "NSScrollView top left" (without the quotes) yielded this as the third hit for me: http://www.omnigroup.com/mailman/archive/macosx-dev/200

Core Data design question: receiving KVO notifications of partially mutated objects

2009-10-30 Thread Sean McBride
Hi all, What is considered best practice when it comes to mutating many properties of a managed object, specifically with regard to KVO observers getting notified before all mutations are finished? Let's say I have an Rectangle object. It has properties: colour, width, height. Imagine some cont

Re: Scripting Bridge running method passing an array

2009-10-30 Thread has
On 30 Oct 2009, at 21:38, Kyle Sluder wrote: On Fri, Oct 30, 2009 at 2:35 PM, has wrote: No, the OP's code is passing a *single* reference that identifies *all* of the speaker objects that match the specified condition. No. Here is the OP's code: NSArray *setTheSpeaker; setTheSpeak

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-10-30 Thread Kiel Gillard
On 31/10/2009, at 9:01 AM, Sean McBride wrote: Hi all, What is considered best practice when it comes to mutating many properties of a managed object, specifically with regard to KVO observers getting notified before all mutations are finished? In situations like these I personally tend to av

Re: Scripting Bridge and Xcode rule problem

2009-10-30 Thread timm...@gmail.com
On Oct 30, 2009, at 2:44 AM, Kyle Sluder wrote: Anyone have any ideas why sometimes sdef fails like that? Also, is it possible to make System Preferences open once and/or quit after sdef and sdp have finished with it? Even though this isn't Xcode-users (where your sdp/sdef question would be

Re: making the NSScrollView align its subview to the top-left corner

2009-10-30 Thread Graham Cox
On 31/10/2009, at 8:53 AM, Gustavo Pizano wrote: Any ideas what Im missing? The view contained by the scrollview needs to be flipped. Return YES from an override of -isFlipped. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: EndianU32_NtoB

2009-10-30 Thread Adam R. Maxwell
On Oct 30, 2009, at 1:46 PM, Jens Alfke wrote: > On Oct 30, 2009, at 10:31 AM, Sean McBride wrote: > >> I don't get why for ints they have host<->big, host<->little, >> etc. for the floats they don't. Instead they have those weird host<- >>> >> swapped. And though they take floats, they return

Tab View Issue

2009-10-30 Thread Richard Somers
Tab Views produce the following error for me. "Illegal Geometry This view is clipped by its superview." Steps to repeat. New Interface Builder Window. Drag a Tab View into the window. Click the Info button. Note the error. Interface Builder Version 3.1.2 (677) on Mac O

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 7:52 PM, Adam R. Maxwell said: >>> I don't get why for ints they have host<->big, host<->little, >>> etc. for the floats they don't. Instead they have those weird host<- >>> swapped. And though they take floats, they return structs. >> >> I think this is to avoid storing swapped

Re: Tab View Issue

2009-10-30 Thread Sean McBride
On 10/30/09 6:05 PM, Richard Somers said: >Tab Views produce the following error for me. "Illegal Geometry This >view is clipped by its superview." > >Steps to repeat. > > New Interface Builder Window. > > Drag a Tab View into the window. > > Click the Info button. > > Note th

Re: Tab View Issue

2009-10-30 Thread Graham Cox
On 31/10/2009, at 11:05 AM, Richard Somers wrote: I can not seem to get rid of this error. Does anyone else have this problem? It's not really an error, just a warning. And a very common one at that - many perfectly reasonable layouts produce them. In my current builds these are the onl

Re: EndianU32_NtoB

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride wrote: > Ah yes, I forgot about those... But I've found them not useful in > practice.  I don't get why for ints they have host<->big, host<->little, > etc. for the floats they don't.  Instead they have those weird host<- >>swapped.  And though they t

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 5:20 PM, Kyle Sluder said: >On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride >wrote: >> Ah yes, I forgot about those... But I've found them not useful in >> practice.  I don't get why for ints they have host<->big, host<->little, >> etc. for the floats they don't.  Instead they have tho

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-10-30 Thread Graham Cox
Hi Sean, I'd say you're going down the wrong path there. Set each property individually. Yes, it will trigger a notification for each one - doesn't or shouldn't matter, and unless you can show it causes a performance problem, shouldn't be a cause for worry on that score. It won't cause mul

64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread David M. Cotter
anyone have some sample code for a function that does the equivalent of HIViewFlashDirtyArea() ? i'd like to have this i the debug version of my program to help flush out inefficient invalidating. or: how do i fetch the invalid "region" of an NSWindow* ? ___

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread Graham Cox
On 31/10/2009, at 12:04 PM, David M. Cotter wrote: or: how do i fetch the invalid "region" of an NSWindow* ? -getRectsBeingDrawn:count: --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread Sean McBride
David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said: >anyone have some sample code for a function that does the equivalent >of HIViewFlashDirtyArea() ? > >i'd like to have this i the debug version of my program to help flush >out inefficient invalidating. > >or: > >how do i fetch the

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread Ben Haller
On 30-Oct-09, at 9:17 PM, Sean McBride wrote: David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said: anyone have some sample code for a function that does the equivalent of HIViewFlashDirtyArea() ? i'd like to have this i the debug version of my program to help flush out inefficien

How to scroll custom view

2009-10-30 Thread Symadept
Hi, How can I implement scrolling for the custom view. Regards symadept ___ 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.app

iPhone: How to show another view on UITableView

2009-10-30 Thread Symadept
Hi, I wanna show another image view in the bottom of the UITableView. Any pointers please. Regards symadept ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: How to scroll custom view

2009-10-30 Thread Dave Keck
> How can I implement scrolling for the custom view. Use an NSScrollView. ___ 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.ap

Re: How to scroll custom view

2009-10-30 Thread Symadept
Excellent. Thanks alot. Regards Symadept On Sat, Oct 31, 2009 at 11:08 AM, Dave Keck wrote: > > How can I implement scrolling for the custom view. > > Use an NSScrollView. > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Tool for load testing cocoa applications

2009-10-30 Thread Rupa Bholanath Lahiri
Hi, Is any tool used to perform load testing of cocoa based applications? Thanks and Regards, Rupa CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended re

NSFormatter problems with Snow Leopard

2009-10-30 Thread Nathan Auch
I have a custom NSFormatter attached to several NSTextFields who's only purpose is to uppercase the characters as they are typed into a field. The entire code for my formatter is included at the end of this message. The |stringForObjectValue()| and |getObjectValue()| implementations are no-ops an

NSUndoManager and runModalForWindow

2009-10-30 Thread Kevin
I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be undone/ redone without interfering with the main managed object context. The editing window

nonsense from cellFrameAtRow:column: on Leopard

2009-10-30 Thread Matt Neuburg
I'm building on Snow Leopard but I want to run on Leopard too. I'm calling NSMatrix's cellFrameAtRow:column: from an NSCell, like this: NSInteger row, col; [(CardMatrix*)[self controlView] getRow:&row column:&col ofCell:self]; NSRect myFrame = [ (CardMatrix*)[self controlView] cellFrameAtRow:row

Cocoa replacement for Carbon CompositeIconRef() for Snow Leopard 64-bit apps?

2009-10-30 Thread Dalmazio Brisinda
On 2009-10-29, at 3:13 AM, cocoa-dev-requ...@lists.apple.com wrote: Jim Correia put me on to MyCompositeImageRep, and after a fair amount of head scratching, I came up with the following solution. Basically, use a subclass of NSCustomImageRep to hold the two images to be composited or the imag

Re: EndianU32_NtoB

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 5:37 PM, Sean McBride wrote: > I guess 'platform-independent format' is code for big endian. Maybe? Maybe not. It's a platform-independent format: struct CFSwappedFloat32 { uint32_t v; }; That doesn't imply anything about the data actually contained therein. --Kyle