Re: Get size of folder

2009-08-19 Thread Charles Srstka
On Aug 18, 2009, at 11:17 PM, PCWiz wrote: Hi, I need a good method to find the size of a file or folder exactly as displayed in Finder. I've tried every method I could find on the internet, from using the du shell utility with NSTask to using the Carbon file manager. I need something tha

Re: Get size of folder

2009-08-19 Thread Jean-Daniel Dupas
Le 19 août 2009 à 09:52, Charles Srstka a écrit : On Aug 18, 2009, at 11:17 PM, PCWiz wrote: Hi, I need a good method to find the size of a file or folder exactly as displayed in Finder. I've tried every method I could find on the internet, from using the du shell utility with NSTask to

Re: Get size of folder

2009-08-19 Thread Charles Srstka
On Aug 19, 2009, at 2:59 AM, Jean-Daniel Dupas wrote: I think you have to add data and resource sizes to match the Finder behavior (which are two distinct field in the catalog info). Ah, you're right. This probably makes Carbon's file manager the most convenient way to do it (I believe it's

Re: int to bytes(value in NSString)

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 02:30, bosco fdo wrote: Hi all I dont want in binaries('1', '0'), but i want to convert int to bytes(byte value string) for example in java working code when i convert int value 1 to byte value in 4 square like chars(unreadable format) the same thing i need to do in obje

Re: Get size of folder

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 09:03, Charles Srstka wrote: On Aug 19, 2009, at 2:59 AM, Jean-Daniel Dupas wrote: I think you have to add data and resource sizes to match the Finder behavior (which are two distinct field in the catalog info). Ah, you're right. This probably makes Carbon's file manager

Re: Get size of folder

2009-08-19 Thread Jean-Daniel Dupas
Le 19 août 2009 à 11:47, Charles Srstka a écrit : On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote: As I think I may have mentioned before, contrary to apparently widespread opinion, Carbon isn't magic. The Carbon file manager APIs are based on BSD APIs, and calling the BSD APIs in qu

Re: Get size of folder

2009-08-19 Thread Gregory Weston
PCWiz wrote: I need a good method to find the size of a file or folder exactly as displayed in Finder. I've tried every method I could find on the internet, from using the du shell utility with NSTask to using the Carbon file manager. I need something that will work under heavy load (processing

Re: Need advice about how to create a Cocoa Framework

2009-08-19 Thread Harry Jordan
Do you mean that you want to write an Objective-C wrapper to the C library, or just group the C functions into an easily accessible place? If your wrapping things in Objective-C, try not to change any of the C library (of course tidying, and bug fixing as you go's allowed). Write the framew

Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.

2009-08-19 Thread Brian Bruinewoud
Resending because I never saw this appear in the list. On 10/08/2009, at 21:51 , Brian Bruinewoud wrote: I found the motivating example for this thread. Files are: http://media.pragprog.com/titles/amiphd/code/FileIO/FilesystemExplorer/Classes/DirectoryViewController.m http://media.pragprog.com

Re: Get size of folder

2009-08-19 Thread Charles Srstka
On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote: As I think I may have mentioned before, contrary to apparently widespread opinion, Carbon isn't magic. The Carbon file manager APIs are based on BSD APIs, and calling the BSD APIs in question is going to be faster if you really need hig

Re: int to bytes(value in NSString)

2009-08-19 Thread bosco fdo
Hi all Sorry if i am not clear. But i need to group all binary format data together in my logic for that i need to convert some integer to binary format(byte value?) the below java code make the conversion correct private byte[] int2bin(int i) { byte[] value = new b

Core Data dog-slow when using first time after boot

2009-08-19 Thread Ruotger Skupin
Hi, when fetching about 5000 objects from an sql store, Core Data is very slow the very first time after a boot. When running the app the first time it takes 50 to 90 seconds and when starting it the second time it is well below one second. What is going on here? Has anyone noticed this t

Re: Get size of folder

2009-08-19 Thread Charles Srstka
On Aug 19, 2009, at 4:56 AM, Jean-Daniel Dupas wrote: If you don't believe Carbon use the BSD API, just do a simple File Manager based application, and check what append in Shark or other sampling software when you run it, or even better, use DTrace to check what syscall is used. I just t

Re: Get size of folder

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 10:47, Charles Srstka wrote: On Aug 19, 2009, at 4:24 AM, Alastair Houghton wrote: As I think I may have mentioned before, contrary to apparently widespread opinion, Carbon isn't magic. The Carbon file manager APIs are based on BSD APIs, and calling the BSD APIs in quest

Re: Get size of folder

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 10:56, Jean-Daniel Dupas wrote: and that someone had benchmarked Cocoa vs. Carbon vs. BSD, and Carbon came out on top. What I didn't remember was that it was you who did it: The last time I saw this kind of benchmark, the BSD code were poorly implemented and did not use

Re: Get size of folder

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 11:14, Charles Srstka wrote: I just tried it with Shark, and it appears not to be using the standard BSD opendir and readdir APIs, but rather the proprietary to Apple (as far as I can tell) getdirentriesattr API, which actually does seem to have a man page now, which says

Re: int to bytes(value in NSString)

2009-08-19 Thread Alastair Houghton
On 19 Aug 2009, at 11:04, bosco fdo wrote: Sorry if i am not clear. But i need to group all binary format data together in my logic for that i need to convert some integer to binary format(byte value?) the below java code make the conversion correct private byte[] int2bin(int i) {

Re: Need advice about how to create a Cocoa Framework

2009-08-19 Thread Jerry Krinock
On 19 Awst 2009, at 01:05, Gevik wrote: I would like to know what (and how) the recommended way is to bundle my C library as a Cocoa framework http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html ___

Re: Throwing NSException in custom linked framework?

2009-08-19 Thread Robert Mullen
Indeed I did. I had not run outside the Xcode environment but it does work as expected when run as a stand alone app. On Aug 18, 2009, at 9:03 PM, Kyle Sluder wrote: Sounds like you're breaking on objc_exception_throw, which is going to happen when the exception is raised—and therefore befor

Starting editing for a Row as soon as it is Added.

2009-08-19 Thread Joshua Garnham
Hi There, I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. I have had a go using the code below (but as I'm not that Confident with Cocoa) it did not work. - (IBActi

Re: Starting editing for a Row as soon as it is Added.

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 10:30 AM, Joshua Garnham wrote: I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. ... - (IBAction)add:(id)sender { [treeController add:@"New

Re: Syncronizing class files and Core Data entities

2009-08-19 Thread Sean McBride
On 8/19/09 6:52 AM, Michael Thon said: >> I use mogenerator with great success. Which version are you using? >> Try >> getting the newest from version control. >> >I used version 1.5. I just found the svn repo and tried the latest >version. Works fine now. Great. (However, I don't believe he

Re: Get size of folder

2009-08-19 Thread Sean McBride
On 8/19/09 11:23 AM, Alastair Houghton said: >Carbon is usually a good way to go, because you don't need to check >the volume caps first And in case people out there are thinking "oh no! Carbon! boo!"... Note that the 'File Manager' isn't actually part of Carbon.framework but rather CoreServices

Re: FYI - new debug & profile libraries are out

2009-08-19 Thread Jerry Krinock
On 2009 Aug 05, at 19:48, Nick Zitzmann wrote: The good news is, yesterday new debug & profile libraries appeared on ADC. Woohoo! I have searched and searched the Apple website but can't find this. Someone please post a link. Also, if anyone has a link to or any tips on how to use a Deb

FREED message is crashing my program

2009-08-19 Thread Korei Klein
When I compile and run my project, it crashes because of an illegal memory access error. Just before the error occurs, the program logs the following line: objc[32305]: FREED(id): message set sent to freed object=0x53ffb850 . The object at address 0x53ffb850 is the object that has the illeg

NSFetchedResultsController with custom NSSortDescriptor

2009-08-19 Thread Sebastian Celis
Hello, I am using an NSFetchedResultsCountroller to execute a query against a Core Data database backed by a sqlite data store. I would like to sort the results by an NSString property of my NSManagedObject. However, if the property is nil or an empty string, I would like those results to appear a

Re: Get size of folder

2009-08-19 Thread PCWiz
Hi, It would probably be a good idea to tell you guys some of the methods I have tried. First of all, I've tried just using NSFileManager and NSEnumerator to enumerate through the directory. This didn't add up resource forks AND it didn't round up the sizes to Finder's 4KB minimum block s

Re: NSTableView empty selection not working

2009-08-19 Thread PCWiz
I checked the Array Controller and it had the "Avoid Empty Selection" setting checked. So I unchecked it, saved, and tried again. It still doesn't work. And now I have another problem (once again, out of the blue). I have it set to "Select Inserted Objects" in my Array Controller, and objec

Re: NSTableView empty selection not working

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 11:39 AM, PCWiz wrote: I checked the Array Controller and it had the "Avoid Empty Selection" setting checked. So I unchecked it, saved, and tried again. It still doesn't work. And now I have another problem (once again, out of the blue). I have it set to "Select Inserted

Re: FREED message is crashing my program

2009-08-19 Thread Bill Bumgarner
On Aug 19, 2009, at 8:23 AM, Korei Klein wrote: The object at address 0x53ffb850 is the object that has the illegal memory access error. What does this FREED line mean, and what does it have to do with memory access problems? You overreleased something and it is causing the crash. Turn on

Re: Get size of folder

2009-08-19 Thread Jean-Daniel Dupas
Le 19 août 2009 à 17:29, PCWiz a écrit : Hi, It would probably be a good idea to tell you guys some of the methods I have tried. First of all, I've tried just using NSFileManager and NSEnumerator to enumerate through the directory. This didn't add up resource forks AND it didn't round up

Re: FREED message is crashing my program

2009-08-19 Thread Kyle Sluder
On Wed, Aug 19, 2009 at 8:48 AM, Bill Bumgarner wrote: > Turn on NSZombie mode. More clarification, since from your confusion it sounds like you might not know what this means: "NSZombie mode" means that whenever an object's retain count drops to zero, instead of freeing the memory held by that o

Re: FYI - new debug & profile libraries are out

2009-08-19 Thread Kyle Sluder
On Wed, Aug 19, 2009 at 8:10 AM, Jerry Krinock wrote: > Also, if anyone has a link to or any tips on how to use a Debug and Profile > Library, that would be great.  The last time I used one, I didn't see get > any messages logged and wasn't sure if my app was perfect or if I wasn't > really using t

Re: NSTableView empty selection not working

2009-08-19 Thread PCWiz
Hi, Here is the source code for the app in which I'm having issues with making an empty selection in the NSTableView Click here to download file The app is compiled under the 10.5 SDK. It uses the BWToolkit framework, so if you don't have its ibplugin installed then you may need to get i

Re: NSFetchedResultsController with custom NSSortDescriptor

2009-08-19 Thread Kyle Sluder
You're going to need to do an in-memory sort of these objects. Your suspicions about Core Data sorting are correct: when using the SQLite store, it sends the sorting off to the database backend, where it's far more efficient to do. Have you thought instead of sorting on a dependent property of yo

Re: Get size of folder

2009-08-19 Thread Dave DeLong
Will those return the file sizes in 4KB block increments? Or will that return the actual byte size? PCWiz is looking for the former. Dave On Aug 19, 2009, at 10:01 AM, Jean-Daniel Dupas wrote: Use The Core Services File Manager API : http://developer.apple.com/documentation/Performance/Co

Re: NSTableView empty selection not working

2009-08-19 Thread Dave DeLong
Link fail. On Aug 19, 2009, at 10:03 AM, PCWiz wrote: Hi, Here is the source code for the app in which I'm having issues with making an empty selection in the NSTableView Click here to download file The app is compiled under the 10.5 SDK. It uses the BWToolkit framework, so if you don't

Re: FYI - new debug & profile libraries are out

2009-08-19 Thread Sean McBride
On 8/19/09 8:10 AM, Jerry Krinock said: > >On 2009 Aug 05, at 19:48, Nick Zitzmann wrote: > >> The good news is, yesterday new debug & profile libraries appeared >> on ADC. Woohoo! > >I have searched and searched the Apple website but can't find this. >Someone please post a link. You can get it f

Re: FYI - new debug & profile libraries are out

2009-08-19 Thread Nick Zitzmann
On Aug 19, 2009, at 9:10 AM, Jerry Krinock wrote: I have searched and searched the Apple website but can't find this. Someone please post a link. Go to , log in using your Apple ID, go to Downloads, go to Developer Tools, and search on the page for "profil" un

Re: Get size of folder

2009-08-19 Thread Jean-Daniel Dupas
It will returns what you ask for. Catalog info can contain physical data/rsrc size and logical data/rsrc size. Le 19 août 2009 à 18:07, Dave DeLong a écrit : Will those return the file sizes in 4KB block increments? Or will that return the actual byte size? PCWiz is looking for the forme

Re: NSTableView empty selection not working

2009-08-19 Thread PCWiz
Oops, my bad Here's the link: http://rapidshare.com/files/269163555/BeastClone.zip.html :-) On 2009-08-19, at 10:08 AM, Dave DeLong wrote: Link fail. On Aug 19, 2009, at 10:03 AM, PCWiz wrote: Hi, Here is the source code for the app in which I'm having issues with making an empty select

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Nick Zitzmann
On Aug 19, 2009, at 4:13 AM, Ruotger Skupin wrote: when fetching about 5000 objects from an sql store, Core Data is very slow the very first time after a boot. When running the app the first time it takes 50 to 90 seconds and when starting it the second time it is well below one second.

Re: NSFetchedResultsController with custom NSSortDescriptor

2009-08-19 Thread Sebastian Celis
Well, I sort dynamically on different properties so an explicit sortIndex wouldn't be ideal. But the lack of normalization just might work. I could create a boolean field which basically acts as 'hasProperty'. I can then hook into -willSave of the NSManagedObject to set that to YES or NO appropriat

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Ruotger Skupin
Am 19.08.2009 um 18:38 schrieb Nick Zitzmann: On Aug 19, 2009, at 4:13 AM, Ruotger Skupin wrote: when fetching about 5000 objects from an sql store, Core Data is very slow the very first time after a boot. When running the app the first time it takes 50 to 90 seconds and when starting it

Re: Get size of folder

2009-08-19 Thread Bill Monk
PCWiz wrote: The next thing I tried was using the Carbon File Manager API using this method by Dave DeLong: http://github.com/davedelong/BuildCleaner/blob/b2712242b4eea1fff0e78a08b393a417e3019c8a/NSFileManager+FileSize.m This method worked for some folders/files, but for others it returned wil

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 1:14 PM, Ruotger Skupin wrote: I debugged it with some Snow Leopard magic and found out, that firing faults is very slow the first time after boot. When I use - [NSArray filteredArrayUsingPredicate:] the fault firing is killing me. So I recoded it to fetch everything upf

Re: Get size of folder

2009-08-19 Thread Rainer Brockerhoff
At 21:54 -0700 18/08/09, cocoa-dev-requ...@lists.apple.com wrote: >From: PCWiz >Date: Tue, 18 Aug 2009 21:17:30 -0700 >Message-ID: <9c08262c-4924-4840-8ca3-f4548db20...@gmail.com> > >I need a good method to find the size of a file or folder exactly as displayed >in Finder. I've tried every method

Starting editing for a Row as soon as it is Added. (More Detail)

2009-08-19 Thread Joshua Garnham
Hi There, I have an NSOutlineView and what I want to happen is that when a row is added I want the row that has been added to Start Editing immediately like when you double click on a row. I have had a go using the code below (but as I'm not that Confident with Cocoa) it did not work. - (IBActi

Re: Over Riding Print Function in Cocoa PDE Plugin

2009-08-19 Thread David Duncan
On Aug 17, 2009, at 11:27 PM, Siva Manne wrote: Is it possible to overriding the print function in Cocoa PDE Plugin ?. I need to do execute some piece of code before printing. In Cocoa PDE Plugin In the sample PDEPlugin code given by apple i found that when i launch the print dialogue and i

Detect Keyboard Layout for CGKeyCodes

2009-08-19 Thread Joe Turner
Hey, I've got an application that basically simulates a keyboard using CGEvents with CGKeyCodes. However, because CGKeyCodes only map the position of the key on a keyboard, and not the actual key, I've run into some issues. Is there an easy way to detect the type of keyboard they have, an

Re: NSTableView empty selection not working

2009-08-19 Thread PCWiz
This seems to be a bug with Snow Leopard, or Snow leopards developer tools. I took the same project, and then compiled and ran it on Leopard, the issue does not exist. I'm not sure why this is happening. Thanks On 2009-08-19, at 10:08 AM, Dave DeLong wrote: Link fail. On Aug 19, 2009, at 1

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Ruotger Skupin
Am 19.08.2009 um 19:18 schrieb I. Savant: Hmm ... time to hit the books if you haven't already: http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#/ /apple_ref/doc/uid/TP40003468 Have you tried anything suggested there? Fetch Limits: Not tri

Re: Starting editing for a Row as soon as it is Added. (More Detail)

2009-08-19 Thread Kyle Sluder
On Wed, Aug 19, 2009 at 10:31 AM, Joshua Garnham wrote: > The line ->    [outlineView rowForItem:(id)@"New Item"]; > Is supposed to give the row number of the added row to the next line If you believe this to be the case, you need to go back over the language basics. This isn't even specifically

Core Animation + Garbage Collection

2009-08-19 Thread Evan Moseman
I've been trying to get a fairly simple and well documented transition: CIPageCurlTransition to work in my app, but the results are awful. Non filter transitions like kCATransitionFade work fine, but when I try to use a CAFilter for the transition the best I get is dome chopped up image wi

Re: Coding with VM limitation on the iPhone?

2009-08-19 Thread David Duncan
On Aug 18, 2009, at 4:53 PM, Jonathon Kuo wrote: Hmm, that's kind of a harsh environment... The notification mechanism is great for the purpose of controlling bloat, but doesn't tell you how much VM you have to play with at the outset. I suppose all I can do is *try* to alloc() and if it fa

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Tito Ciuro
Ruotger, Interestingly enough, I experienced this behavior in my latest app which doesn't use Core Data. It uses SQLite directly instead. I recalled I had experienced this a long time ago (years ago) and someone (I don't remember who and where) mentioned a solution/ workaround/hack, which

Vvidget article on MacResearch

2009-08-19 Thread lbland
hi- A little OT, but for Cocoa/IB development, just a quick FYI: http://www.macresearch.org/vvidget-fixes-invasive-property-new- deployment-options Vvidget Fixes Invasive Property With New Deployment Options for people that might be interested. Also, FYI: cd /Developer/Library/Frameworks/I

Statements in Replaced Method execute out of sequence - How?

2009-08-19 Thread Jerry Krinock
Maybe this is the Challenge of the Day. In debugging my undo grouping issue, I've replaced NSUndoManager's -beginUndoGrouping and - endUndoGrouping with methods that log whenever they're invoked. I suppose I could do this be setting breakpoints and debugging, but I've always trusted NSLog(

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread M Pulis
Folks, This sounds like Rosetta. If you are seeing this on an intel machine, and if _any_ code in the execution path is non-intel, then Rosetta will startup, blocking until ready. I have an app called Rosetta Booster; when set as a login item, Rosetta is engaged, initialized, and ready to

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 3:09 PM, M Pulis wrote: This sounds like Rosetta. If you are seeing this on an intel machine, and if _any_ code in the execution path is non-intel, then Rosetta will startup, blocking until ready. I'm not sure how you've arrived at this conclusion based on the messag

Re: Core Animation + Garbage Collection

2009-08-19 Thread Bill Bumgarner
On Aug 19, 2009, at 10:54 AM, Evan Moseman wrote: I've been trying to get a fairly simple and well documented transition: CIPageCurlTransition to work in my app, but the results are awful. Non filter transitions like kCATransitionFade work fine, but when I try to use a CAFilter for the tra

Finding top most window/panel the cursor is currently hovering over

2009-08-19 Thread Development
Can anyone tell me how to calculate what window the cursor is currently hovering over, at any given moment? This sounds like a very simple bit of code, but it has stumped me and a number of other developer friends. My application has document windows and panels. One the panel is a Result

Bug in NSTableView handling with Snow Leopard

2009-08-19 Thread PCWiz
There seems to be a bug in NSTableView handling with Snow Leopard. It's not a problem with the dev tools themselves, rather the way the operating system handles the table view object. When using a NSTableView with the "Source List" style, you cannot make an empty selection with the table vi

Re: Bug in NSTableView handling with Snow Leopard

2009-08-19 Thread Dave DeLong
Not here, no. Perhaps someone can in the Apple forums (devforums.apple.com ), where you can talk about pre-release software. =) Dave On Aug 19, 2009, at 1:39 PM, PCWiz wrote: This was tested on the latest build of 10.6 (build 10A432). I'll file a radar for this ASAP. Meanwhile, can anyone e

Re: Bug in NSTableView handling with Snow Leopard

2009-08-19 Thread Nick Zitzmann
On Aug 19, 2009, at 1:39 PM, PCWiz wrote: There seems to be a bug in NSTableView handling with Snow Leopard. And the first rule of Fight Club is... (Note: You can talk about the cat at ; just not here yet.) Nick Zitzmann

Heartbeat thread is blocked?

2009-08-19 Thread Seth Willits
I've been noticing this for a little while now. For some wacky reason, the thread that tickles default buttons and progress indicators to update is somehow no long working in my app. Default buttons don't pulsate and the progress indicators don't spin. The GUI is fully responsive otherwis

Re: Bug in NSTableView handling with Snow Leopard

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 3:39 PM, PCWiz wrote: There seems to be a bug in NSTableView handling with Snow Leopard. ... This was tested on the latest build of 10.6 (build 10A432). I'll file a radar for this ASAP. Meanwhile, can anyone else confirm this problem? Snow Leopard is under NDA. You c

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread M Pulis
(1) The subject: "Re: Core Data dog-slow when using first time after boot" (2) contains the key phrase "dog slow when using first time after boot" (3) I know that Rosetta only "starts" once and takes a lot of time, but not until the first non-native code hits. (4) also, one post from tito

re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Ben Trumbull
when fetching about 5000 objects from an sql store, Core Data is very slow the very first time after a boot. When running the app the first time it takes 50 to 90 seconds and when starting it the second time it is well below one second. Properly done, you could fetch 5000 objects on an original

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 3:55 PM, M Pulis wrote: (5) tito was close with "warmupfile" workaround (is sqlite native???) "Is SQLite" native" seems to be the one point on which all your others hinge. I'd be dutifully surprised if it were not. -- I.S. __

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Ben Trumbull
Interestingly enough, I experienced this behavior in my latest app which doesn't use Core Data. It uses SQLite directly instead. I recalled I had experienced this a long time ago (years ago) and someone (I don't remember who and where) mentioned a solution/ workaround/hack, which involves reading

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Bill Bumgarner
On Aug 19, 2009, at 1:05 PM, I. Savant wrote: On Aug 19, 2009, at 3:55 PM, M Pulis wrote: (5) tito was close with "warmupfile" workaround (is sqlite native???) "Is SQLite" native" seems to be the one point on which all your others hinge. I'd be dutifully surprised if it were not. It is

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 4:56 PM, Bill Bumgarner wrote: "Is SQLite" native" seems to be the one point on which all your others hinge. I'd be dutifully surprised if it were not. It is flat out impossible. A task -- a running program -- is either all PPC or all Intel or all 32 bit or all 64 bit.

devil of a time with an NSImageView

2009-08-19 Thread Jack Carbaugh
I am simply trying to set an NSImageView to an NSImage. I'm certain i'm doing the right methods, but alas, no images show. Suggestions ? Thanks in advance. jack boxPic is an IBOutlet connected to the NSImageView in the NIB. -(void)setImage:(NSImage *)newImage; { NSLog(@"Incoming image: %

Re: devil of a time with an NSImageView

2009-08-19 Thread Dave DeLong
Are you sure the outlet hasn't gotten disconnected? Or maybe you connected it, then changed the name of the outlet in Xcode? That's the output you would see if the outlet were null. Dave On Aug 19, 2009, at 3:15 PM, Jack Carbaugh wrote: I am simply trying to set an NSImageView to an NSIma

bound popup cell not letting me set it's value

2009-08-19 Thread Christopher Campbell Jensen
Hi, I have made a short screen recording of my issue: http://www.flickr.com/photos/christophercjensen/3837784580/ As you might notice, I have an NSDictionaryController MetaData which has it's contents set to an NSMutableDictionary metadata. My window has a NSTableview with two columns: Column

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread M Pulis
The sqlite question was a reference to tito saying his experience was "years ago" when the possibility of a non-native sqlite on an intel machine was absolutely real and significantly less surprising. You may know, but I have no idea what versions are installed on any given system, much les

- [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Ben Lachman
I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView *view = previewWebView.mainFrame.frameView.documentView; NSRect targetRect = view.bounds; NSBitmap

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread Tito Ciuro
On Aug 19, 2009, at 2:21 PM, M Pulis wrote: The sqlite question was a reference to tito saying his experience was "years ago" when the possibility of a non-native sqlite on an intel machine was absolutely real and significantly less surprising. You may know, but I have no idea what versions

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread M Pulis
On Aug 19, 2009, at 2:21 PM, M Pulis wrote: responders, etc (you can execute PPC frameworks onto an Intel machine, yes?) No, not from an native app. Sorry 'bout that. Extremely unlikely that Rosetta is the OP's problem unless there is something like a helper app that is getting launc

Re: devil of a time with an NSImageView

2009-08-19 Thread Jack Carbaugh
100% certain it is connected in the xib. On Aug 19, 2009, at 5:19 PM, Dave DeLong wrote: Are you sure the outlet hasn't gotten disconnected? Or maybe you connected it, then changed the name of the outlet in Xcode? That's the output you would see if the outlet were null. Dave On Aug 19,

Re: bound popup cell not letting me set it's value

2009-08-19 Thread Quincey Morris
On Aug 19, 2009, at 14:21, Christopher Campbell Jensen wrote: Column 2 is set to be pop up cells and is bound to MetaData.arrangedObjects.value You've missed something, either in your problem description or in your code. A popup cell is going to involve (at a minimum) 2 bindings: one to s

Re: devil of a time with an NSImageView

2009-08-19 Thread Quincey Morris
On Aug 19, 2009, at 14:31, Jack Carbaugh wrote: 100% certain it is connected in the xib. That's not proof it's connected (yet) at the time 'setImage:' is invoked. Log the value of 'boxPic' too, and I bet it will be nil. ___ Cocoa-dev mailing li

Re: devil of a time with an NSImageView

2009-08-19 Thread Jack Carbaugh
You are correct. Logging of boxPic is indeed null. How do i proceed then? here is a snippet of the code ... aWindowController *theWindowController = [[aWindowController alloc] initWithMyName:[who name]]; // snip several assignments to theWindowController if ( [[who serverItems] objectForKe

Re: devil of a time with an NSImageView

2009-08-19 Thread Jean-Daniel Dupas
You're probably calling setImage: before the nib is loaded (and so the outlet is connected). You can force it to load by calling [aWindowController window] before trying to set the image. Le 20 août 2009 à 00:39, Jack Carbaugh a écrit : You are correct. Logging of boxPic is indeed null. Ho

Re: Core Data dog-slow when using first time after boot

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 5:21 PM, M Pulis wrote: You may know, but I have no idea what versions are installed on any given system, much less the OP's, responders, etc (you can execute PPC frameworks onto an Intel machine, yes?) what frameworks are in play, etc; and simply pose the question. .

Re: devil of a time with an NSImageView

2009-08-19 Thread I. Savant
On Aug 19, 2009, at 6:49 PM, Jean-Daniel Dupas wrote: You're probably calling setImage: before the nib is loaded (and so the outlet is connected). You can force it to load by calling [aWindowController window] before trying to set the image. The standard practice is to start any nib-depen

When do I need to override hash?

2009-08-19 Thread Gideon King
I was just looking up the documentation to remind myself of the difference between isEqual: and isEqualTo: and saw that for your own custom objects to behave nicely in a collection, it apparently needs to override both isEqual: and hash. But when I look at the specific documentation for thi

Layer-backed view confused by bounds transformation

2009-08-19 Thread Nathan Vander Wilt
An NSView's bounds can be set to a different size than its frame, which results in a transform being applied to the graphics context as the view is drawn. How is this supposed to affect subviews if the view is layer backed? If I set my view's bounds to have half the width of its frame, all

Re: devil of a time with an NSImageView

2009-08-19 Thread Jonathan Hess
What happens if you include this log to your setImage method? NSLog(@"image view: %@", boxPic); Also, rather than logging you should see if you can find the time to learn to use the debugger. It's much more efficient than printf debugging. Good Luck - Jon Hess On Aug 19, 2009, at 2:31 PM,

Re: Heartbeat thread is blocked? -- With Code and Movie

2009-08-19 Thread Seth Willits
On Aug 19, 2009, at 12:43 PM, Seth Willits wrote: I've been noticing this for a little while now. For some wacky reason, the thread that tickles default buttons and progress indicators to update is somehow no long working in my app. Default buttons don't pulsate and the progress indicators

Re: Detect Keyboard Layout for CGKeyCodes

2009-08-19 Thread Harry Jordan
I've not used CGEvents much.. (Once upon a time, hopefully never again) but if I remember rightly CGKeyCodes are equivalent to NSEvent keyCodes*. If not you can easily convert between the two using: + (NSEvent *)eventWithCGEvent:(CGEventRef)cgEvent. Have a look at this: http://inquisitiveco

otest output in xUnit XML format?

2009-08-19 Thread Barry Wark
I'm trying to integrate OCUnit unit tests more fully with our continuous integration system. Out of the box, Hudson supports test output in the xUnit XML format produced by JUnit, CppUnit, nose (a python test framework), etc. Is there any way to get otest to produce this XML formatted output? If no

Re: When do I need to override hash?

2009-08-19 Thread Kyle Sluder
On Wed, Aug 19, 2009 at 4:28 PM, Gideon King wrote: > So do I need to override hash too? If so, are there any recommendations as > to how to determine the hash easily? You need to override -hash for the simple reason that the documentation says you need to override -hash. That gives anyone else l

Re: devil of a time with an NSImageView

2009-08-19 Thread Jonathan Hess
Hey Jack - That means that either the outlet isn't connected, or the NIB hasn't been loaded yet when setImage: is called. Also, are you sure you aren't creating more instances of your class than you think you are? A common mistake is to instantiate the class in code, and tell it to load a

Re: Heartbeat thread is blocked? -- With Code and Movie

2009-08-19 Thread Adam R. Maxwell
On Aug 19, 2009, at 5:05 PM, Seth Willits wrote: I've completely stripped this project down to the absolute bare bones and it shows this bug. Simply launch the app. You'll see that the default button in the window is NOT plusating like it should be, and if you click it, you'll see that the

Solved: devil of a time with an NSImageView

2009-08-19 Thread Jack Carbaugh
As others have suggested ... the NIB had not been fully loaded and ready for my changes. As a test, i modified the image view in awakeFromNib and things worked marvelously. Thank you for the help! I knew it had to be something simple that i was missing. Jack On Aug 19, 2009, at 8:37 PM, Jo

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Adam R. Maxwell
On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView *view = previewWebView.mainFrame.frameView.documentView; I do something similar,

Re: When do I need to override hash?

2009-08-19 Thread Nathan Vander Wilt
On Aug 19, 2009, at 4:28 PM, Gideon King wrote: So do I need to override hash too? If so, are there any recommendations as to how to determine the hash easily? If you need to override -isEqual: to provide something besides pointer comparison, you should also override -hash. If objects are eq

alias link to libcrypto not working across different OS X versions

2009-08-19 Thread Steve Mykytyn
I have an app that needs to work across recent OS X versions. It links in the libcrypto.dylib, which is of course an alias. Path: /usr/lib/libcrypto.dylib Full Path: /usr/lib/libcrypto.0.9.x.dylib (anonymized to respect NDAs) App works fine on the dev machine with the newer OS X rele

  1   2   >