Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread mmalc Crawford
On Dec 7, 2009, at 7:08 pm, Chunk 1978 wrote: > is this suppose to work for multiple touches where one touch is > already present, then another touches the screen? > Yes, it does; tested in a working application. > it's not working for me. each time i touch the screen and add an object to >

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread mmalc Crawford
On Dec 8, 2009, at 12:38 am, mmalc Crawford wrote: >> is this suppose to work for multiple touches where one touch is >> already present, then another touches the screen? >> > Yes, it does; tested in a working application. > >> it's not working for me. each time i touch the screen and add an o

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
thanks for the links. i'm really surprised with how complicated this is. i'm also equally surprised that there is not a lot of small sample code online On Tue, Dec 8, 2009 at 3:50 AM, mmalc Crawford wrote: > > On Dec 8, 2009, at 12:38 am, mmalc Crawford wrote: > >>> is this suppose to work for

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Graham Cox
On 08/12/2009, at 8:58 PM, Chunk 1978 wrote: > i'm really surprised with how complicated this > is. Yes, because a multi-touch gesture-based events system is child's play, really. Makes you wonder why Apple's OS is the only one to have it built in, since any half-decent programmer could jus

NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Dalmazio Brisinda
I'm writing a QuickLook plugin that, as part of the preview process, makes an http call to a (localhost) server to obtain data that is then used to generate the preview image. The code below works fine outside the QuickLook architecture, as a standard Cocoa application. But as soon as I move th

Re: NSDecimal chokes on very small numbers

2009-12-08 Thread Tom Bernard
My work with NSDecimal values has turned up several bugs and a documentation error. Most of these bugs are extant under Mac OS X 10.5.7, and are FIXED under Mac OS X 10.6 (10A380). For the record: All bugs are extant under Mac OS X 10.5.7 Extant under Mac OS X 10.6 (10A380): NSDecimalPower

Binding and Observers

2009-12-08 Thread Gerriet M. Denkmann
I have a document based app. MyDocument.h has: IBOutletIKImageView *myIkView; MyDocument.nib has an IKImageView and an NSSlider with it's value bound to myIkView.rotationAngle. Works perfectly. But when I closed the window I got an exception complaining about some observers n

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
i meant that i find it complicated compared to basic single touches or gestures. it's making my head swim. since it's something i would imagine lots of developers have to deal with i'm mostly surprised that apple hasn't made the process more convenient, but instead the docs state that i have to u

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Mike Abdullah
I'm pretty certain Apple disallows use of non-file URLs in Quick Look generators for the simple reason that a generator should run as quickly as possible. Generators should also be fairly standalone - why do you need to POST to generate a preview/thumbnail? On 8 Dec 2009, at 10:13, Dalmazio Bri

Re: IKImageBrowserView image quality changing with redraw

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 00:01, Adam Berger wrote: > I'm trying to move from a custom view to an IKImageBrowserView in a project, > and running into a somewhat odd problem. Context: my IKImageBrowserItems are > IKImageBrowserNSImageRepresentationType, backed by a relatively > large (~600x800) NSImage. >

Re: NSOutlineView expand-by-default with NSTreeController

2009-12-08 Thread Benjamin Rister
On Dec 5, 2009, at 6:11 PM, Jason Foreman wrote: > [[treeController arrangedObjects] childNodes]; > > Iterate over this collection and find nodes where [node representedObject] is > equal to your newly inserted objects. Then you can pass this NSTreeNode > instance to -[NSOutlineView exan

Unable to write in InfoPlist.strings file from cpp

2009-12-08 Thread Parimal Das
Hi I am trying to write "CFBundleGetInfoString" into "InfoPlist.strings" from cpp code and It is writing successfully. But when i use the InfoPlist.strings in xcode, it gives me a build error /usr/bin/iconv: English.lproj/InfoPlist.strings:1:82: incomplete character or shift sequence Now if i ope

Re: IKImageBrowserView image quality changing with redraw

2009-12-08 Thread Thomas Goossens
Hi Adam, Is this on Leopard or Snowleopard ? I just tried to load images from /System/Library/Desktop Pictures in an IKImageBrowserView using the NSImage representation. They appears just fine for me (SnowLeopard). > [Side note: I've seen reference to the prefetching behavior > of IKImageBrowse

Re: Unable to write in InfoPlist.strings file from cpp

2009-12-08 Thread Greg Parker
On Dec 8, 2009, at 5:25 AM, Parimal Das wrote: > I am trying to write "CFBundleGetInfoString" into "InfoPlist.strings" from > cpp code and It is writing successfully. > But when i use the InfoPlist.strings in xcode, it gives me a build error > /usr/bin/iconv: English.lproj/InfoPlist.strings:1:82: i

Informations about Cocoa implementations of VDCP and MOS protocols

2009-12-08 Thread Mario Kušnjer
Hello to the list ! I'm wondering if anyone here ever came across of Cocoa or Objective-C implementations of VDCP and MOS protocols ? Google shows no results that would give me any references and examples about how could (should) this be done. I guess that nobody tried to make an open source

Slow performance of adding MIDI Events to MusicTrack?

2009-12-08 Thread NickK
Hi all, I've been working on a MIDI application and I'm just creating a test track of 10,000,000 events spread over 46 notes. Once created the application stores the MusicSequence as a file. I traditionally use large data sets to ensure the applications are written to deliver fast processing and

Re: Slow performance of adding MIDI Events to MusicTrack?

2009-12-08 Thread Simone Tellini
NickK ha scritto: I've sampled the application running and it spends 100% of it's time within std::vector operations - iterator and copy. So I'm assuming it adds the event by iterating through the entire current set until it finds the correct timestamp location and then makes a gap my copying

Re: Slow performance of adding MIDI Events to MusicTrack?

2009-12-08 Thread NickK
Ok, I've submitted it as a performance bug to Apple. It's a quick win fix to be honest with a large effect on their MIDI users. I should try a test using MIDIEndPoint attached to the MusicTrack to add the note events instead.. Nick On 8 Dec 2009, at 14:59, Simone Tellini wrote: > NickK ha scr

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread mmalc Crawford
On Dec 8, 2009, at 3:49 am, Chunk 1978 wrote: > i meant that i find it complicated compared to basic single touches or > gestures. > It's not clear what's complicated. You typically want to know when touches began, moved, and ended, and there are methods to inform you when each of these things

File system file renaming question...

2009-12-08 Thread Phil Hystad
This question is not specifically about Cocoa programming but I hope that some Mac OS X experts out there can give me an answer. I sent an attached photo to my daughter so that she could print it out using Costco print services. I sent it at high resolution, the photo image was 1.6 MB. It see

Re: odd problems with NSData / OpenGL

2009-12-08 Thread David Duncan
On Dec 7, 2009, at 11:46 PM, Henri Häkkinen wrote: > I have a simple Cocoa document-based application, which uses a custom > NSOpenGLView derived class. This view object has a reference to the document > object (this binding is set in the nib file), and the document has a > reference to a Mesh

Re: File system file renaming question...

2009-12-08 Thread Jens Miltner
Am 08.12.2009 um 17:26 schrieb Phil Hystad: This question is not specifically about Cocoa programming but I hope that some Mac OS X experts out there can give me an answer. I sent an attached photo to my daughter so that she could print it out using Costco print services. I sent it at hig

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 2:13 AM, Dalmazio Brisinda wrote: > I'm writing a QuickLook plugin that, as part of the preview process, makes an > http call to a (localhost) server to obtain data that is then used to > generate the preview image. > > The code below works fine outside the QuickLook architec

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
this is what i have so far, but i have no idea how to write the touchesEnded method so that the appropriate label will clear.  so if 3 fingers are touching the screen and displaying their different coordinates, if the 2nd finger that was pressed ends its touch, the 2nd label will clear ("Touch 2: {

Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Benjamin Rister
I have a NSTreeController displayed via an NSOutlineView. It’s set up to expand items by default as they’re added to the model. This is all on Snow Leopard. When a bunch of items (some thousands) are added and removed from the model, there’s a large memory spike (multi-hundred MB) almost entirel

Re: File system file renaming question...

2009-12-08 Thread Alastair Houghton
On 8 Dec 2009, at 16:26, Phil Hystad wrote: > This question is not specifically about Cocoa programming but I hope that > some Mac OS X experts out there can give me an answer. Then why not send it to an appropriate mailing list, like macosx-talk? Or post it in Apple's voluminous Support forum

Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Michael Abendroth
Hi, I'd like to customize the color of the line that separates a window's content area from its title bar. I've uploaded a screenshot of the line I mean here: http://i48.tinypic.com/r2q9eu.png . How would I do this, if possible without having to subclass NSWindow? Thanks, -Mike

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread lbland
hi- On Dec 8, 2009, at 11:48 AM, David Duncan wrote: > My understanding is Quicklook plugins are not allowed to make network > connections due to sandbox restrictions. We ran into this same problem when QL plugins were first included with the OS. thanks!- -lance _

Re: File system file renaming question...

2009-12-08 Thread Greg Guerin
Phil Hystad wrote: Does anyone know of a way to turn this off or is this considered a "feature" for some ease-of-use aspect of OS X? Compress images to zip before sending? I've never seen Mail do anything except transfer zips as-is. -- GG ___

A list for off-topic messages (was Re: File system file renaming question...)

2009-12-08 Thread Randall Meadows
On Dec 8, 2009, at 9:26 AM, Phil Hystad wrote: > This question is not specifically about Cocoa programming but I hope that > some Mac OS X experts out there can give me an answer. Well, you're probably going to get spanked for doing that. A very good list for these type of Mac-related, but Coco

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Dalmazio Brisinda
Well, it's the way the system is architected -- we are using QuickLook plugins for icon badging, and that badging depends on the state of certain elements of the filesystem which is maintained in a separate server process. Best, Dalmazio On 2009-12-08, at 5:09 AM, Mike Abdullah wrote: > I'

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Dalmazio Brisinda
Thanks for that. Okay, I see the QuickLook docs sort of allude to this in regards to using Web-Kit plugins within QuickLook generators. Which gets me thinking: would it then be possible to maybe connect to the server via local distributed objects instead of using the NSURLConnection framework? I

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Kyle Sluder
On Tue, Dec 8, 2009 at 10:13 AM, Dalmazio Brisinda wrote: > Well, it's the way the system is architected -- we are using QuickLook > plugins for icon badging, and that badging depends on the state of certain > elements of the filesystem which is maintained in a separate server process. This see

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 10:16 AM, Dalmazio Brisinda wrote: > Thanks for that. Okay, I see the QuickLook docs sort of allude to this in > regards to using Web-Kit plugins within QuickLook generators. Which gets me > thinking: would it then be possible to maybe connect to the server via local > distri

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread Julien Jalon
This discussion would be better done in the quicklook-dev mailing list. And in fact, it already took place there. Please avoid cross posting questions like this. On Tue, Dec 8, 2009 at 7:16 PM, Dalmazio Brisinda wrote: > Thanks for that. Okay, I see the QuickLook docs sort of allude to this in >

Re: IKImageBrowserView image quality changing with redraw

2009-12-08 Thread Adam Berger
This has so far only been tested on SnowLeopard. I'm going to divide this into two issues, since I'm not 100% sure they're related. 1) On redraw, a filtering is applied that changes the image quality. Are you seeing this change on first redraw from a large NSImage (rather than from a url to an im

Re: Localizing Xibs using bindings

2009-12-08 Thread Duccio
Il giorno 05/dic/2009, alle ore 19.05, Rossi Matteo ha scritto: > I find it very annoying to localize Xibs by keeping a copy for each > translation. It's both tedious and error-prone. > I've found that by simply binding each button's title (or wharever other > control you need) to the appropriat

[iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Hi. I created CustomNavBar subclassing UINavigationBar. In Interface Builder I drag a Navigation Controller (UINavigationController) from the library to the document. Under this object in document window I can see a Navigation Bar (UINavigationBar). Clicking it and using the Identity Inspector

CAShapeLayer and touches?

2009-12-08 Thread Eric E. Dolecki
I have a CAShapeLayer and I'd like to drag it. I have this code which I can't configure correctly: - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; if( CGRectContainsPoint([pointerLayer bounds], [touch locationInView:pointerLayer

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
You could subclass UINavigationController. Luke On Dec 8, 2009, at 9:46 AM, Duccio wrote: > Hi. > > I created CustomNavBar subclassing UINavigationBar. > > In Interface Builder I drag a Navigation Controller (UINavigationController) > from the library to the document. Under this object in doc

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread jonat...@mugginsoft.com
> > > Any ideas about why NSTreeController’s KVO is taking up so much memory/CPU > with bookkeeping? Any suggestions for working around the problem? > I assume that you are using bindings. Looks like a typical KVO notification storm to me. What works well for adding and updating one or two ob

Re: Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Jens Alfke
On Dec 8, 2009, at 9:25 AM, Michael Abendroth wrote: I'd like to customize the color of the line that separates a window's content area from its title bar. Try turning on the "textured" flag in IB. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Michael Abendroth
On Tue, Dec 8, 2009 at 8:54 PM, Jens Alfke wrote: > > On Dec 8, 2009, at 9:25 AM, Michael Abendroth wrote: > >> I'd like to customize the color of the line that separates a window's >> content area from its title bar. > > Try turning on the "textured" flag in IB. > > —Jens > > Unfortunately, when

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Aldo Armiento
Il giorno 08/dic/2009, alle ore 20.40, Luke the Hiesterman ha scritto: > You could subclass UINavigationController. > I can't (or I should't): "This class is not intended for subclassing. Instead, you use instances of it as-is in situations where you want your application’s user interface to r

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 11:34 AM, Eric E. Dolecki wrote: > Looks like that method expects a UIView - what's the best way to access the > CAShapeLayer to know whether or not a user's touched it? Then I'd like to > constrain drag it. Are you trying to hit test against the shape layer's path? I'm not ce

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Kyle Sluder
On Tue, Dec 8, 2009 at 12:00 PM, Aldo Armiento wrote: > The question is: why can I use my custom subclass of UINavigationBar in a > UINavigationController using IB and I can't do it programmatically? All that > can be done in IB should not be able to do programmatically? I guess one question is

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread mmalc Crawford
On Dec 8, 2009, at 8:59 am, Chunk 1978 wrote: > this is what i have so far, but i have no idea how to write the > touchesEnded method so that the appropriate label will clear. so if 3 > fingers are touching the screen and displaying their different > coordinates, if the 2nd finger that was press

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Alex Kac
At least on the iPhone I can say that using NIBs can add a short delay or slow some UI operations down. Normally we prefer to use IB everywhere we can. On the iPhone we balance it more. Places where pure code is not difficult, we'll go that route because its noticeably faster. While its gotten b

Re: CAShapeLayer and touches?

2009-12-08 Thread Eric E. Dolecki
Basically if a user touches the shape layer's path (the UI for the pointer), I'd like the user to be able to slide it left and right. I did not subclass UIView - I am using a rootLayer and using the path within that. CAShapeLayers have hitTests? I haven't seen code like that anywhere yet (Google).

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 12:47 PM, Eric E. Dolecki wrote: > Basically if a user touches the shape layer's path (the UI for the pointer), > I'd like the user to be able to slide it left and right. I did not subclass > UIView - I am using a rootLayer and using the path within that. CAShapeLayers > have

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Aldo Armiento
Il giorno 08/dic/2009, alle ore 21.37, Alex Kac ha scritto: > At least on the iPhone I can say that using NIBs can add a short delay or > slow some UI operations down. Normally we prefer to use IB everywhere we can. > On the iPhone we balance it more. Places where pure code is not difficult, >

Re: CAShapeLayer and touches?

2009-12-08 Thread Eric E. Dolecki
Okay - so how would I use the bounds? I thought I tried that in my initial code sample: if( CGRectContainsPoint([*pointerLayer bounds*], [touch locationInView:pointerLayer] )){ or is that part correct and the [touch locationInView:pointerLayer.view] be correct? Thanks, Eric On Tue, Dec 8, 2009

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote: > But it seems that in this case I can't use my UINavigationBar subclass if I > instantiate a Navigation Controller programmatically, so the only way to use > my UINavigationBar subclass is to instantiate a Navigation Controller in IB > otherwi

Re: CAShapeLayer and touches?

2009-12-08 Thread Eric E. Dolecki
I might just say forget it and wire up a UIImageView and have the user drag that instead. I wanted to use vectors for this, but a PNG might be just as good. It would be cool to know how to do this someday though. On Tue, Dec 8, 2009 at 3:52 PM, Eric E. Dolecki wrote: > Okay - so how would I use

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 08/dic/2009, alle ore 21.53, Luke the Hiesterman ha scritto: > > On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote: > >> But it seems that in this case I can't use my UINavigationBar subclass if I >> instantiate a Navigation Controller programmatically, so the only way to use >> my U

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 1:13 PM, Duccio wrote: > > Il giorno 08/dic/2009, alle ore 21.53, Luke the Hiesterman ha scritto: > >> >> On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote: >> >>> But it seems that in this case I can't use my UINavigationBar subclass if I >>> instantiate a Navigation Contr

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 12:52 PM, Eric E. Dolecki wrote: > Okay - so how would I use the bounds? I thought I tried that in my initial > code sample: Your making this too complicated :). if([self.view.layer hitTest:[touch locationInView:self]] == pointLayer]) { // my shape layer got hit } --

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread David Duncan
On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote: > But it seems that in this case I can't use my UINavigationBar subclass if I > instantiate a Navigation Controller programmatically, so the only way to use > my UINavigationBar subclass is to instantiate a Navigation Controller in IB > otherwis

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Benjamin Rister
On Dec 8, 2009, at 2:44 PM, jonat...@mugginsoft.com wrote: >> Any ideas about why NSTreeController’s KVO is taking up so much memory/CPU >> with bookkeeping? Any suggestions for working around the problem? >> > I assume that you are using bindings. Yes. > Looks like a typical KVO notification

Re: NSRulerMarker and dragging

2009-12-08 Thread James Dempsey
Arved, There is currently no API to do this. Please submit an enhancement request through bugreporter.apple.com. -James On Oct 17, 2009, at 9:45 PM, Arved von Brasch wrote: > Hello Cocoa List, > > My Googling reveals this question has been asked before, but no answer was > given. Hopefully

Re: CAShapeLayer and touches?

2009-12-08 Thread Eric E. Dolecki
I send to you many thanks. On Tue, Dec 8, 2009 at 4:17 PM, David Duncan wrote: > On Dec 8, 2009, at 12:52 PM, Eric E. Dolecki wrote: > > > Okay - so how would I use the bounds? I thought I tried that in my > initial code sample: > > > Your making this too complicated :). > > if([self.view.layer

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 08/dic/2009, alle ore 22.19, David Duncan ha scritto: > On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote: > >> But it seems that in this case I can't use my UINavigationBar subclass if I >> instantiate a Navigation Controller programmatically, so the only way to use >> my UINavigatio

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Greg Parker
On Dec 8, 2009, at 1:22 PM, Benjamin Rister wrote: > Well...not quite. There’s nothing about doing this notification that requires > allocating hundreds of megabytes of overhead, particularly when the model > itself is a fraction of that size, including payload. As I mentioned, these > blocks it

Re: Binding and Observers

2009-12-08 Thread Steve Steinitz
Hi Gerriet, On 8/12/09, gerr...@mdenkmann.de wrote: MyDocument.nib has an IKImageView and an NSSlider with it's value bound to myIkView.rotationAngle. But when I closed the window I got an exception complaining about some observers not beeing removed. Is it the 'Cannot remove observer...' e

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread mmalc Crawford
On Dec 8, 2009, at 12:33 pm, mmalc Crawford wrote: Get the logic right... > - (void)setUpTouchHandling { > >touchToLabelMapping = CFDictionaryCreateMutable (kCFAllocatorDefault, 5, > &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); >availableLabels = [[NSMutableArray a

Re: Binding and Observers

2009-12-08 Thread mmalc Crawford
On Dec 8, 2009, at 2:17 am, Gerriet M. Denkmann wrote: > - (void)windowWillClose:(NSNotification *)notification > { > id f = [ ikView observationInfo ]; > NSString *oi = [ f description ]; > > BOOL ok; > NSString *obs = @"Observer:"; > NSString *kpa = @"Key pa

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Rob Keniger
On 09/12/2009, at 7:35 AM, Greg Parker wrote: > Which OS version is this? 10.6.2 fixed a performance problem with garbage > collection and large KVO populations. If you still have trouble in 10.6.2+ > then you should file a bug report. There are still massive remaining performance issues with

Improving speed of NSCollectionView scrolling

2009-12-08 Thread PCWiz
Hi, I am using NSCollectionView for a project in which the collection view is populated with about 200 items, each containing about 4 subviews (image view, and a few text fields). Scrolling is not smooth at all, and lags quite a bit. I'm wondering, would just drawing the text and images as par

Re: Big memory/time consumption in NSTreeController KVO GC

2009-12-08 Thread Rob Keniger
On 09/12/2009, at 9:38 AM, Rob Keniger wrote: > There are still massive remaining performance issues with > NSTreeController/NSArrayController in 10.6 if you have a large number of > active bindings. ...and I should point out that these issues were bad enough for me to completely abandon NS

Re: Improving speed of NSCollectionView scrolling

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 23:40, PCWiz wrote: > Hi, > > I am using NSCollectionView for a project in which the collection view is > populated with about 200 items, each containing about 4 subviews (image view, > and a few text fields). > > Scrolling is not smooth at all, and lags quite a bit. I'm won

Re: Fwd: nscalendardate with 10.4

2009-12-08 Thread Sean McBride
On 12/7/09 2:32 PM, Sissy said: > >> >> i've complete my project which runs great on 10.5 leopard and i am >> trying to compile it to work with 10.4 (tiger). i use >> nscalendardate which uses nsinteger which does not exist in 10.4. >> how do i adjust dates using nscalendardate which is supposed

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 20:49, Aldo Armiento wrote: > Il giorno 08/dic/2009, alle ore 21.37, Alex Kac ha scritto: > >> At least on the iPhone I can say that using NIBs can add a short delay or >> slow some UI operations down. Normally we prefer to use IB everywhere we >> can. On the iPhone we balanc

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Henri Häkkinen
On Dec 8, 2009, at 6:42 PM, David Duncan wrote: > More than likely this is a memory management problem. Specifically, you > probably aren't claiming ownership of the NSData object that you store in > your instance variable, and thus it is being deallocated out from under you. I was under the i

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: > Other alternatives: > > - Subclass UINavigationController to return a custom view from -navigationBar. > - Add a custom subview to the nav bar to do your drawing. I recommend neither of these. It's already been brought up that UINavigationCont

Re: Improving speed of NSCollectionView scrolling

2009-12-08 Thread PCWiz
Sorry I'm new to Obj-C/Cocoa, how would I do this performance profiling? On 2009-12-08, at 4:50 PM, Mike Abdullah wrote: > > On 8 Dec 2009, at 23:40, PCWiz wrote: > >> Hi, >> >> I am using NSCollectionView for a project in which the collection view is >> populated with about 200 items, each c

Re: odd problems with NSData / OpenGL

2009-12-08 Thread David Duncan
If you don't turn GC on, then you likely don't have it on. Check your project settings, as most if the project templates do not enable GC. -- David Duncan @ My iPhone On Dec 8, 2009, at 3:52 PM, Henri Häkkinen wrote: On Dec 8, 2009, at 6:42 PM, David Duncan wrote: More than likely this

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Nick Zitzmann
On Dec 8, 2009, at 4:52 PM, Henri Häkkinen wrote: > I was under the impression that automatic garbage collection was used in Mac > OS X 10.5 and over, so retaining and releasing objects was handled > automatically? No; you have to turn it on in the application, for two reasons: 1. Tiger and e

Finding process path from Cocoa?

2009-12-08 Thread Laurent Daudelin
Is there any way I can find what's the path of a given process running? A background process, which cannot be retrieved in [[NSWorkspace sharedWorkspace] launchedApplications]? Thanks! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://neme

Re: Tracking Multiple Touches For Appropriate Label

2009-12-08 Thread Chunk 1978
i'm very grateful for your help. thanks so much for posting such a complete solution. i'm certain there will be others like myself who will find your code extremely helpful. thanks again. On Tue, Dec 8, 2009 at 5:24 PM, mmalc Crawford wrote: > > On Dec 8, 2009, at 12:33 pm, mmalc Crawford wrot

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Sean McBride
On 12/9/09 1:52 AM, Henri Häkkinen said: >I was under the impression that automatic garbage collection was used in >Mac OS X 10.5 and over, so retaining and releasing objects was handled >automatically? Mostly automatic. :) >This is the initializer method of my Mesh class (I'm using OpenCTM >lib

Re: Finding process path from Cocoa?

2009-12-08 Thread Nick Zitzmann
On Dec 8, 2009, at 5:03 PM, Laurent Daudelin wrote: > Is there any way I can find what's the path of a given process running? A > background process, which cannot be retrieved in [[NSWorkspace > sharedWorkspace] launchedApplications]? Yes. ([[[NSProcessInfo processInfo] arguments] objectAtInde

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 23:57, Luke the Hiesterman wrote: > > On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: > >> Other alternatives: >> >> - Subclass UINavigationController to return a custom view from >> -navigationBar. >> - Add a custom subview to the nav bar to do your drawing. > > I recomme

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Henri Häkkinen
On Dec 9, 2009, at 2:05 AM, Sean McBride wrote: > > And these are ivars I guess? If so, they should live as long as 'self' does. Yes, they are ivars. I was able to resolve the issue by adding invocation to retain: for both _vertices and _indices. So yep, it was a memory management issue. I be

Re: Improving speed of NSCollectionView scrolling

2009-12-08 Thread Mike Abdullah
Read up on Instruments. http://developer.apple.com/tools/performance/ On 8 Dec 2009, at 23:57, PCWiz wrote: > Sorry I'm new to Obj-C/Cocoa, how would I do this performance profiling? > > On 2009-12-08, at 4:50 PM, Mike Abdullah wrote: > >> >> On 8 Dec 2009, at 23:40, PCWiz wrote: >> >>> Hi, >

Re: Improving speed of NSCollectionView scrolling

2009-12-08 Thread Corbin Dunn
On Dec 8, 2009, at 3:40 PM, PCWiz wrote: > Hi, > > I am using NSCollectionView for a project in which the collection view is > populated with about 200 items, each containing about 4 subviews (image view, > and a few text fields). You may want to consider using a different view. NSCollectionV

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Sean McBride
On 12/9/09 2:25 AM, Henri Häkkinen said: >On Dec 9, 2009, at 2:05 AM, Sean McBride wrote: >> >> And these are ivars I guess? If so, they should live as long as >'self' does. > >Yes, they are ivars. > >I was able to resolve the issue by adding invocation to retain: for both >_vertices and _indices

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 09/dic/2009, alle ore 00.57, Luke the Hiesterman ha scritto: > > On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: > >> Other alternatives: >> >> - Subclass UINavigationController to return a custom view from >> -navigationBar. >> - Add a custom subview to the nav bar to do your drawi

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 4:40 PM, Duccio wrote: > Il giorno 09/dic/2009, alle ore 00.57, Luke the Hiesterman ha scritto: > >> >> On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: >> >>> Other alternatives: >>> >>> - Subclass UINavigationController to return a custom view from >>> -navigationBar. >>

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 09/dic/2009, alle ore 01.49, Luke the Hiesterman ha scritto: >> >> So, just to understand, why can I do that through IB but not (legally) via >> code? The ability to choose a class for the navigation bar in a navigation >> controller should have been blocked in IB? >> >> You says ab

resize handle and custom view classes

2009-12-08 Thread Henri Häkkinen
Hello. In cases where a custom view class occupies the whole NSWindow content area, the resize handle at the bottom right corner gets overdrawn and stays behind the graphics. Is there any easy way of telling Cocoa that the resize handle should be drawn on top of any other graphics? For example

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
>> On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: >> >>> Other alternatives: >>> >>> - Subclass UINavigationController to return a custom view from >>> -navigationBar. >>> - Add a custom subview to the nav bar to do your drawing. >> >> I recommend neither of these. It's already been brought

Re: Customize the line's color that separates the window content from the title bar?

2009-12-08 Thread Rob Keniger
On 09/12/2009, at 5:59 AM, Michael Abendroth wrote: > Unfortunately, when turning on the "textured" flag in IB, my app > mysteriously crashes. When you say "mysteriously", what do you mean? What is the stack backtrace? -- Rob Keniger ___ Cocoa-dev

Mac OS 10.5 can't find xib-instantiated subclass methods

2009-12-08 Thread Jerry Krinock
"All of a sudden", an app which I'm building won't display complete windows when running in Mac OS 10.5. While loading a window, -awakeFromNib is not found for subclasses that are instantiated in a xib. Examples: *** -[ContentOutlineView awakeFromNib]: unrecognized selector sent to instance

Re: Mac OS 10.5 can't find xib-instantiated subclass methods

2009-12-08 Thread Kyle Sluder
On Dec 8, 2009, at 6:22 PM, Jerry Krinock wrote: Now, since -awakeFromNib is implemented by NSObject, it should NEVER be unrecognized for any subclass of NSObject, which all of the above classes are... Not before 10.6 it isn't. --Kyle Sluder ___

Re: Best way to hook into the run loop?

2009-12-08 Thread Graham Cox
For those who were helping out with my problems with Undo, and others who might be interested, I've released my Undo implementation here: http://apptree.net/gcundomanager.htm I'd be interested to hear any feedback, criticism, suggestions, praise or whatever. In adding this class to my app, all

Re: Improving speed of NSCollectionView scrolling

2009-12-08 Thread PCWiz
Ok, I think I've solved this problem. Corbin, you're right, the problem is too many subviews. What I did to counter this problem is to actually draw most images/text in my prototype NSView subclass rather than using subviews like NSImageView and NSTextField. This yielded a pretty noticeable spe

Issue with Input method using IMK

2009-12-08 Thread bhanu
Hi, I am trying to develop an input method using IMKit approach by implementing the below. -(BOOL)inputText:(NSString*) string key:(NSInteger)keyCode modifiers:(NSUInteger)flags client:(id)sender I took the IMK sample available at ADC, and understood the flow by installing and dumping the tr

Deleting entire sections in UITableView edit mode

2009-12-08 Thread Michael Gardner
I'm creating a UITableView in which users should be able to (among other things) delete not only single rows, but entire sections. When the table is put into edit mode, I would like to show a control in each section header that will allow deletion of the associated section. How hard is this goi

Re: Mac OS 10.5 can't find xib-instantiated subclass methods

2009-12-08 Thread Jerry Krinock
On 2009 Dec 08, at 18:36, Kyle Sluder wrote: >> Now, since -awakeFromNib is implemented by NSObject > > Not before 10.6 it isn't. Thank you, Kyle. That was the problem, and since the runtime doesn't distinguish between subclass and superclass, the exception logged sent me looking down the wr

Re: Unable to write in InfoPlist.strings file from cpp

2009-12-08 Thread Parimal Das
Thanks a lot Greg. Interpret as UTF8 solved the problem. -Parimal Das On Tue, Dec 8, 2009 at 8:18 PM, Greg Parker wrote: > On Dec 8, 2009, at 5:25 AM, Parimal Das wrote: > > I am trying to write "CFBundleGetInfoString" into "InfoPlist.strings" > from > > cpp code and It is writing successfully.

  1   2   >