Search Kit memory management

2010-07-31 Thread Michael Thon
I am indexing a large set of files using Search Kit. I find that memory usage (reported by Activity Monitor) keeps growing in my app, as it indexes more documents. I don't find any memory leaks. In Instruments, I find that there can sometimes be hundreds of SKDocumentRef objects marked as

[announce] printing tabular data

2010-07-31 Thread Michael Swan
It seems there are questions periodically about printing table data that pop up, so here is a class that takes care of a lot of the grunt work, MSTablePrint. http://themikeswan.wordpress.com/2010/07/31/printing-tabular-data/ Mike Swan ETCP Certified Entertainment Electrician

Re: Search Kit memory management

2010-07-31 Thread Ken Thomases
On Jul 31, 2010, at 2:24 AM, Michael Thon wrote: I am indexing a large set of files using Search Kit. I find that memory usage (reported by Activity Monitor) keeps growing in my app, as it indexes more documents. I don't find any memory leaks. In Instruments, I find that there can

Re: does anyone use IKImageView?

2010-07-31 Thread Bill Garrison
On Jul 30, 2010, at 2:23 PM, Quincey Morris wrote: Unlike with most frameworks, the API isn't really a contract with the developer, but more a series of Push Here For A Chance To Win buttons. Well put. Bill___ Cocoa-dev mailing list

Re: [iPhone] Nib Loading Question

2010-07-31 Thread Fritz Anderson
On 30 Jul 2010, at 3:36 PM, Development wrote: I have a nib with two views in it. however the only view that loads is the one connected to the view outlet in the view controller. How can I get the second view to load? What do you mean that the other view doesn't load? How do you know?

Re: Calling Matlab from Cocoa

2010-07-31 Thread Fritz Anderson
On 30 Jul 2010, at 4:15 PM, Chris Goedde wrote: On Jul 30, 2010, at 12:27 PM, Sherm Pendley wrote: ... Remember, Objective-C *is* C. The easiest thing to do IMHO would be to simply call the C functions. That's what I was originally hoping to do, but I don't think it's that simple. As far

Re: drawingRectForBounds not being called

2010-07-31 Thread Tony Romano
Here is one additional thing I discovered. I have an outlet to the NSTextField that contains the cell so I can write text to it. This is the only connection to my application. If I remove the outlet, the drawingRectForBounds: is called. If I add it back, it won't get called. Why should

[Meet] Cocoa Camp Atlanta

2010-07-31 Thread Jonathan Freeman
Hi! The Atlanta CocoaHeads and Atlanta iOS Developers are organizing the first Cocoa Camp, September 25, 2010, from 8am to 2pm. Aaron Hillegass, of 'Cocoa Programming for Mac OS X', will be giving the opening keynote. Directions and other information can be found here: http://cocoacamp.org

Re: drawingRectForBounds not being called

2010-07-31 Thread Kyle Sluder
On Jul 31, 2010, at 8:31 AM, Tony Romano tony...@hotmail.com wrote: Here is one additional thing I discovered. I have an outlet to the NSTextField that contains the cell so I can write text to it. This is the only connection to my application. If I remove the outlet, the

Re: [iPhone] Nib Loading Question

2010-07-31 Thread Matt Neuburg
On Sat, 31 Jul 2010 09:39:12 -0500, Fritz Anderson fri...@manoverboard.org said: There are three ways to access the contents of a NIB. 1. Via -[UIViewController initWithNibName:bundle:], which connects the references to outlets in File's Owner (the view controller itself). If a root object in the

QTKit Question

2010-07-31 Thread Matthew Weinstein
I'm using a QTMovieView in my project and a user would like be able to zoom in. Looking at the API there seems to be a setZoomButtonsVisible: selector, but it doesn't seem to work on my set up. Does this only work if they have bought QT Pro? I'm on the latest snow leopard, and I notice it says

Best Way To Bind Sum/Difference of Two Arrays?

2010-07-31 Thread Chris Tracewell
I have two arrays, A and B, that each contain objects that have a myTotal property. In IB I use an array controller for each and show their contents in separate NSTableview's and then display the sum for each by binding to respective NSTextField's using the @sum array operator on their

Re: loading French strings being in English language

2010-07-31 Thread cocoa learner
True. That can be done. But I am looking for standard way of doing instead of creating a Dictionary from the strings file. And at the same time I would like to change keyboard input (from English to French based on the option chosen from my App radio button). On Fri, Jul 23, 2010 at 10:57 PM,

3d cube using public api of CoreAnimation

2010-07-31 Thread cocoa learner
Hi All, Is there any way to create 3d Cube effect in Core Animation using public API. After searching in net I found some links but those are talking about using Private Apis. Which I do not want. My target machine is Mac OS X 10.5 (Leopard). Regards Cocoa.learner

Re: Best Way To Bind Sum/Difference of Two Arrays?

2010-07-31 Thread Quincey Morris
On Jul 31, 2010, at 12:03, Chris Tracewell wrote: I have two arrays, A and B, that each contain objects that have a myTotal property. In IB I use an array controller for each and show their contents in separate NSTableview's and then display the sum for each by binding to respective

undefined symbols: NSPathControl

2010-07-31 Thread Shane
I'm having trouble getting my app to build again. For some reason, when I add a file subclassed from NSView, like say an NSPathControl, it doesn't seem to be able to find these classes. This problem started happening after I loaded my application in a certain preview release of a future xcode ide

Re: loading French strings being in English language

2010-07-31 Thread Kyle Sluder
On Jul 31, 2010, at 1:15 PM, cocoa learner cocoa.lear...@gmail.com wrote: True. That can be done. But I am looking for standard way of doing instead of creating a Dictionary from the strings file. And at the same time I would like to change keyboard input (from English to French based on the

Re: undefined symbols: NSPathControl

2010-07-31 Thread Kyle Sluder
On Jul 31, 2010, at 2:03 PM, Shane software.research.developm...@gmail.com wrote: Ld /Users/srd/Projects/shared_builds/myapp.build/Release/myapp Spotlight Importer.build/Objects-normal/x86_64/myapp normal x86_64 cd /Users/srd/Projects/myapp setenv MACOSX_DEPLOYMENT_TARGET 10.6

Re: undefined symbols: NSPathControl

2010-07-31 Thread Shane
You're missing -framework AppKit here. I believe there's something in the Xcode 4 release notes about specifying linked frameworks that might explain why this flag has gone missing. Thanks, I'll go looking for that. But the fact that you're trying to use NSPathControl in a Spotlight

Re: loading French strings being in English language

2010-07-31 Thread Alex Kac
Well there are a couple reasons on the iPhone in our case. First, some users have devices that are set to languages like French or German, but they want to run the app in English. Why? I'm told it has to do with some business preferences or something. On iPhone its all or nothing. So at least

Re: QTKit Question

2010-07-31 Thread douglas welton
Matthew, I believe that the zoom button being referred to by this method is the zoom button on the QuickTime VR movie Controller. Is the movie being displayed in your QTMovieView linear or a VR movie? If your movie is linear, then you can scale it using one of the following: - use a

Re: NSPathControl w/ popups and icons

2010-07-31 Thread Shane
I'm trying to create an NSPathControl where there are several items (components) within the row and each item (component) is a popup menu. And then I would populate each of those popups w/ items. But I'm having a problem in understanding if that's how it really works. I'm playing around w/ the

Re: loading French strings being in English language

2010-07-31 Thread John Joyce
Hi Alex, In this case, are they requiring the OS language be in English? If the OS is in French, or another language, it is still possible to change your app's UI labels to any string you desire. It is a bit more work for you to implement. However, OS supplied services, such as copy/paste will

Re: loading French strings being in English language

2010-07-31 Thread Alex Kac
Right - honestly its just a few people here and there who ask for it for business reasons. If there was an easy way - such as NSUserDefault we could set that would tell the OS - use our English NIBs and strings - that's what we'd be looking for. Without that, its just not worth it. On Mac OS

Re: loading French strings being in English language

2010-07-31 Thread John Joyce
Hi Alex, You might build a few simple strings files, and simply reference and load those based on the stored user preference for the app. This can be particularly convenient for apps that need the ability to load various languages. Beyond that, you may want to clearly identify the use-case and

Re: loading French strings being in English language

2010-07-31 Thread Alex Kac
Yeah, we have string files, but we also have tons of NIBs. Since the NIBs have varying widths and other customizations per language - I'd prefer not to have to go this route. Its just not worth the efort. On Jul 31, 2010, at 8:41 PM, John Joyce wrote: Hi Alex, You might build a few simple

Re: loading French strings being in English language

2010-07-31 Thread John Joyce
Hi Alex, This is understandable. Layouts can be heavily impacted by localization differences. I do not know your app, but one other approach you might take would be to move as much as possible into icon-based controls in the application in order to avoid the delta between the localized

Re: Intercepting deletion of NSManagedObjects or how to handle deletion in non-explicit relationships?

2010-07-31 Thread Martin Stanley
On 2010-07-31, at 12:54 AM, Kyle Sluder wrote: However, my subclass of NSPredicateEditor overrides the objectValue method (to catch errors such as the one I described earlier). It would be possible to parse the predicate and create back-pointers at this point. This is called every time

Problem with UITableView

2010-07-31 Thread Laurent Daudelin
I've been banging my head on this for over a day now and I just can't find what's wrong with my tableview and the tableview cells. Basically, as you can see here: http://nemesys.dyndns.biz/Images/iPhoneScreenshot.png I have a table view made of 2 sections. Section 1 has only one tableview cell

Re: Determine encoding of file

2010-07-31 Thread Dave DeLong
Thanks to everyone who responded with ideas on this. John's suggestion of the TEC* functions was promising, but I ended up not using them when I discovered that they're not available on the iPhone. Ditto for Martin's suggestion of using getxattr. I eventually ended up using Rainer's method

table header cells not on even lines

2010-07-31 Thread Shane
I've got an NSTableColumn that uses a custom class for the table header cells which is inherited from an NSPopUpButtonCell. I list the code below how I create the table header cells and put them in the NSTableColumn's. Attached are two images that show what my problem looks like. The

Re: Intercepting deletion of NSManagedObjects or how to handle deletion in non-explicit relationships?

2010-07-31 Thread Kyle Sluder
On Sat, Jul 31, 2010 at 8:22 PM, Martin Stanley r...@thinkingventures.com wrote: I agree that it would be nice to let Core Data handle as much of the referential integrity, etc. as possible; in fact that was why I posed the question in the first place. The problem is that one cannot convert

Re: QTKit Question

2010-07-31 Thread Kyle Sluder
On Sat, Jul 31, 2010 at 4:39 PM, douglas welton douglas_wel...@earthlink.net wrote: - use a layer-backed view and apply a CI scaling filter - use the movie view delegate and apply a CI scaling filter -  use raw QuickTime and futz with the movie matrix - use the View's -scaleUnitSquareToSize

Re: Problem with UITableView

2010-07-31 Thread Luke Hiesterman
Are you returning the same cell 4 times? That's not right. You're going to need 4 separate cell instances even if they are of the same class and layout. It sounds like you might be taking 1 cell instance out of a nib and returning that each time. Luke Sent from my iPhone. On Jul 31, 2010,

Re: Problem with UITableView

2010-07-31 Thread Laurent Daudelin
Isn't the purpose of dequeueReusableCellWithIdentifier: of reusing tableview's objects? I've used this in the past and it never failed me. The documentation says For performance reasons, a table view'€™s data source should generally reuse UITableViewCell objects when it assigns cells to rows in

Re: Problem with UITableView

2010-07-31 Thread David Duncan
On Jul 31, 2010, at 10:25 PM, Laurent Daudelin wrote: Isn't the purpose of dequeueReusableCellWithIdentifier: of reusing tableview's objects? I've used this in the past and it never failed me. The documentation says For performance reasons, a table view'€™s data source should generally

Re: Problem with UITableView

2010-07-31 Thread Roland King
I think you've missed the point of what Luke's saying. If dequeueReusableCellWithIdentifier: returns nil then you create a cell with that identifer, correct, and that cell can be recycled later by the tableview. That's what the [ [ [ UITableViewCell ] alloc ] initWith... ] autorelease ] does,

Re: IKImageView choppy?

2010-07-31 Thread Steve Christensen
Your browser's -imageBrowser:itemAtIndex: data source method returns objects that conform to the IKImageBrowserItem informal protocol. You can specify -imageRepresentationType to return IKImageBrowserNSImageRepresentationType and have -imageRepresentation return a reasonably-sized thumbnail

Re: loading French strings being in English language

2010-07-31 Thread cocoa learner
Well I will put myb problem clearly here - 1. I have an App with language being mentioned in radio button. 2. Being in english user can choose French/German/Japanese etc. And my app should change the *language/input method/keyboard layout* without being terminated. Any example or code snippet