TextfieldCell becomes see through in a tableview

2009-12-07 Thread Symadept
Hi, I was writing a Custom TableView whose cells should be drawing no background. For that I made the Textfieldcell as DrawsBackground:NO. I have overridden TableView and TextfieldCell also. But when I click on the textfield to modify its contents, it becomes see through. Rather I want the

drag and drop form NSViewController or NSView subclass

2009-12-07 Thread Gustavo Pizano
Hello.. I implemented in the past drag and drop, but I did it from within the sub classes of NSView, Im wondering if I can do the same from within the NSViewControllers that control the view.. what implications it has? what you recommend best? Thanks Gustavo

Re: NSTableView reloadData works just on init. (Alberto Piu)

2009-12-07 Thread Alberto Piu
Thank you for your reply. I understand more or less what are the problems, but I don't really know what to change to make it work. You said that this line: shortcutsTable = [[NSTableView alloc] init]; should be shortcutsTable = [[NSTableView alloc] initWithFrame:etc]; but although this is

Re: Heap and memory zone queries

2009-12-07 Thread jonat...@mugginsoft.com
On 7 Dec 2009, at 01:25, Andrew Farmer wrote: On 6 Dec 2009, at 13:57, jonat...@mugginsoft.com wrote: 1. GC is on. Does that mean that all allocations invocation by NS*/CF* will be in the auto_zone? Not necessarily. AppKit and CoreFoundation objects are still capable of allocating

Re: Services Menu Heading

2009-12-07 Thread Gerriet M. Denkmann
On 7 Dec 2009, at 13:01, Kyle Sluder wrote: It's good list etiquette to keep replies on-list. I know; and I apologize for hitting the wrong button. It happened while I was sitting in a rather noisy cafe (because my home internet connection is not working). On Sun, Dec 6, 2009 at 9:55 PM,

Re: drag and drop form NSViewController or NSView subclass

2009-12-07 Thread Gustavo Pizano
HEHEH ok.. I have realized that it can't be done through the NSViewController but its view... G. On Dec 7, 2009, at 2:38 PM, Gustavo Pizano wrote: Hello. Sorry I have answered my own question, I can use the NSViewController, but to register the types I must do it in the view of the

NSString memory allocation

2009-12-07 Thread jonat...@mugginsoft.com
My GC app receives string data from a server and displays it. If the strings are small, say around 60-100KB then real memory allocation seems unremarkable. Above this, say around 100-300KB, then real memory allocation increases by about 20MB. This memory does not seem to be released even after

CAShapeLayer CGAffineTransformMakeForRotation?

2009-12-07 Thread Eric E. Dolecki
I am still on the analog clock thing here. I am drawing the hands of the clock myself and would like to programmatically rotate them. For instance this is how I am constructing the hour hand: rootLayer = [CALayer layer]; rootLayer.frame = CGRectMake(240, 160, 240, 160); self.view.layer

AudioToolbox detect VBR?

2009-12-07 Thread Richard
hey i am working on an app that needs to scan a bunch of music files, and i am currently getting the bitrate and duration using AudioFileGetProperty what i would like to know is if it is possible to determine whether a file is VBR or not, is this possible using the AudioToolbox framework, or any

Re: breakout game - openGL or quartz?

2009-12-07 Thread Brian Dittmer
You'll probably want to check out cocos2d-iphone, a great objective-c framework for writing opengl games on the iphone. You can find more info at http://www.cocos2d-iphone.org. -Brian On Mon, Dec 7, 2009 at 2:46 AM, Chunk 1978 chunk1...@gmail.com wrote: cool game, patrick.  i especially liked

CAShapeLayer

2009-12-07 Thread Eric E. Dolecki
Is it possible to add a drop shadow to a CAShapeLayer? (not a copy below it, but a blurred drop shadow)? If so, how would one approach that? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

IKImageBrowserView out drag drop with NSData

2009-12-07 Thread Micha Fuhrmann
Hi everyone, I'm using an IKImageBrowserView with data rep IKImageBrowserNSDataRepresentationType. I'm using - (NSUInteger) imageBrowser:(IKImageBrowserView *)aBrowser writeItemsAtIndexes:(NSIndexSet *) itemIndexes toPasteboard: (NSPasteboard *)pasteboard and filling the pasteboard with

Re: Localizing Xibs using bindings

2009-12-07 Thread Andrew Farmer
On 5 Dec 2009, at 10:05, Rossi Matteo wrote: 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 appropriate key of a NSDictionary

Untitled Document Leak

2009-12-07 Thread Richard Somers
I have the following memory leak in my application. It is mostly always present but sometimes it will go away. It appears to be associated with opening an untitled document. Does anyone know how to get rid of this? The leak does not grow but stays constant at 186 bytes. Not a big deal

Re: Untitled Document Leak

2009-12-07 Thread Kyle Sluder
On Dec 7, 2009, at 8:40 AM, Richard Somers rsomers.li...@infowest.com wrote: 186 bytes in 1 node: 0x6b8b4 CSMemNewPtr CSMemNewHandle QDUnflattenPixPat _NSReadThemePatternFromRsrc _NSReadThemeImageFromplutEntry GetThemeImage +[NSColor _controlColor] -[NSDynamicSystemColor recacheColor] This

Re: NSTableView reloadData works just on init.

2009-12-07 Thread Nick Zitzmann
On Dec 7, 2009, at 2:57 AM, Alberto Piu wrote: You said that this line: shortcutsTable = [[NSTableView alloc] init]; should be shortcutsTable = [[NSTableView alloc] initWithFrame:etc]; but although this is correct it resets the pointer to a brand new object, so I have to remove

Re: Untitled Document Leak

2009-12-07 Thread Richard Somers
On Dec 7, 2009, at 10:26 AM, Kyle Sluder wrote: This isn't a leak, it's caching the color. Otherwise it would have to call into the OS (CoreUI or what have you) every time anyone asked for the control color, which happens quite often. MallocDebug reported it as a leak so I thought it was a

Re: breakout game - openGL or quartz?

2009-12-07 Thread Randall Meadows
On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote: I wrote a breakout style game for actionscript3: http://collinatorstudios.com/dev/super_collins_breakout and it's been on my mind to make a version for the iPhone.. But before I do that, I thought it would be good to just make a

Re: Localizing Xibs using bindings

2009-12-07 Thread Jerry Krinock
On 2009 Dec 07, at 08:28, Andrew Farmer wrote: On 5 Dec 2009, at 10:05, Rossi Matteo wrote: I find it very annoying to localize Xibs by keeping a copy for each translation. It's both tedious and error-prone. Obvously I take care to keep control sizes large enough to host each

Re: How to determine the type of a motherboard controller

2009-12-07 Thread David Duncan
On Dec 5, 2009, at 12:02 AM, Zephyroth Akash wrote: How do I get the class-code definition of a motherboard controller ? The first question that comes to mind is what do you need to know this information for? Knowing would give us some idea of how to direct you further. -- David Duncan Apple

Re: Localizing Xibs using bindings

2009-12-07 Thread Kyle Sluder
On Mon, Dec 7, 2009 at 10:34 AM, Jerry Krinock je...@ieee.org wrote: It depends on your situation.  I don't foresee my limited resources ever going beyond localizing to de, fr, es, it and ja.  At the risk of being flamed, I'll state that I also use single, language-less xibs. Why not do

Re: AudioToolbox detect VBR?

2009-12-07 Thread David Duncan
On Dec 7, 2009, at 6:53 AM, Richard wrote: i am working on an app that needs to scan a bunch of music files, and i am currently getting the bitrate and duration using AudioFileGetProperty what i would like to know is if it is possible to determine whether a file is VBR or not, is this

Re: CAShapeLayer CGAffineTransformMakeForRotation?

2009-12-07 Thread Kyle Sluder
On Mon, Dec 7, 2009 at 6:16 AM, Eric E. Dolecki edole...@gmail.com wrote: I am still on the analog clock thing here. I am drawing the hands of the  hourHandPath = CGPathCreateMutable(); Rather than making a mutable path and transforming it, you should instead create a CAShapeLayer with an

Re: Localizing Xibs using bindings

2009-12-07 Thread Jerry Krinock
On 2009 Dec 07, at 10:43, Kyle Sluder wrote: On Mon, Dec 7, 2009 at 10:34 AM, Jerry Krinock je...@ieee.org wrote: It depends on your situation. I don't foresee my limited resources ever going beyond localizing to de, fr, es, it and ja. At the risk of being flamed, I'll state that I also

Re: CAShapeLayer CGAffineTransformMakeForRotation?

2009-12-07 Thread Eric E. Dolecki
I don't see a CGPathCreateImmutable() anywhere in the docs. I did solve my problem though. On Mon, Dec 7, 2009 at 1:49 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Mon, Dec 7, 2009 at 6:16 AM, Eric E. Dolecki edole...@gmail.com wrote: I am still on the analog clock thing here. I am

Re: Localizing Xibs using bindings

2009-12-07 Thread Quincey Morris
On Dec 7, 2009, at 10:34, Jerry Krinock wrote: At the risk of being flamed, I'll state that I also use single, language-less xibs. Well, this is no flame, and ya gotta do what ya gotta do, but I will just point out that you and the OP are mostly talking about translation, not localization

Re: CAShapeLayer CGAffineTransformMakeForRotation?

2009-12-07 Thread Kyle Sluder
On Mon, Dec 7, 2009 at 11:32 AM, Eric E. Dolecki edole...@gmail.com wrote: I don't see a CGPathCreateImmutable() anywhere in the docs. Sorry, I was thinking in NSBezierPath terms. I did solve my problem though. How did you do that? Did you do what I recommended, something else, or both?

Re: CAShapeLayer CGAffineTransformMakeForRotation?

2009-12-07 Thread Eric E. Dolecki
float radians = DegreesToRadians((h*30+m/2)); CATransform3D hourTransform; hourTransform = CATransform3DMakeRotation(radians, 0, 0, 1.0 ); [hourHandLayer setTransform:hourTransform]; I have a method called on a timer every second and the hands update from it. On Mon, Dec 7, 2009 at 2:37 PM,

Re: Question about aliasing (analog clock hands)

2009-12-07 Thread Eric E. Dolecki
That's cool - when I used PNGs and rotated them, they looked all aliased on the iPhone so I went with CAShapeLayers instead. Thanks for that link though. On Sun, Dec 6, 2009 at 12:21 AM, Scott Anguish sc...@cocoadoc.com wrote: not sure if this is helpful, but on http://www.abandoninplace.com/

Re: Draw rounded NSImage

2009-12-07 Thread John Wright
Thanks Gideon, that worked. On Sun, Dec 6, 2009 at 9:03 PM, Gideon King gid...@novamind.com wrote: Your code restores the graphics state, which will remove your rounded rect clipping path, before you draw the image. If you draw the image before restoring the graphics state, you should be

Re: Untitled Document Leak

2009-12-07 Thread Seth Willits
On Dec 7, 2009, at 9:36 AM, Richard Somers wrote: This isn't a leak, it's caching the color. Otherwise it would have to call into the OS (CoreUI or what have you) every time anyone asked for the control color, which happens quite often. MallocDebug reported it as a leak so I thought it

receiving events

2009-12-07 Thread Ariel Feinerman
Hi, in Apple`s reference library, examples the event stream looks like following: NSApplication - NSWindow - NSView / custom View / OpenGLView or any NSResponder-inherited class; If a display is captured (for OpenGL) does view receive any events or not? if not and if app for example works in

ABAddressBook - Default Account?

2009-12-07 Thread Steve Cronin
Folks; In Snow Leopard an Address Book user now has a preference setting for setting the 'default account for new contacts' -save always stores to the local machine regardless Am I just missing something? Thanks, Steve ___ Cocoa-dev mailing list

the ABLocalizedPropertyOrLabel() function

2009-12-07 Thread Steve Cronin
Folks; I am trying to understand the ABAddressBook's ABLocalizedPropertyOrLabel() function. I can find descriptions of what it is supposed to do but no actual examples or guidance on how to use it or the necessary conditions for it to work. I have configured a Snow Leopard machine to use

Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread Chunk 1978
for 2 days now i've had unsuccessful attempts at trying to track UITouches that share the same view. i have a plain, full screen view that accepts multiple touches. i have 3 labels titled Touch1, Touch2, Touche3. all i'm trying to accomplish is to output the coordinates of the touches thru the

Image gets wrong resolution value on Snow Leopard

2009-12-07 Thread Randall Meadows
In this application, I have a method that reads in an image and writes it back out with a different resolution. This resolution is specified by the user via a textfield in a sheet. On Leopard, the method works as expected; whatever value for the resolution is specified is what is actually

NSScroller position

2009-12-07 Thread PCWiz
Is it possible to have a vertical NSScroller start from a specified Y coordinate rather than at the top of its scroll view? Thanks___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread mmalc Crawford
On Dec 7, 2009, at 4:12 pm, Chunk 1978 wrote: if ([[[event allTouches] anyObject] view] == self) { for (UITouch *touch in touches) { CGPoint touchPoint = [[touches anyObject] locationInView:self];

Re: NSScroller position

2009-12-07 Thread Graham Cox
On 08/12/2009, at 11:58 AM, PCWiz wrote: Is it possible to have a vertical NSScroller start from a specified Y coordinate rather than at the top of its scroll view? [NSScroller setFloatValue:] or [NSScroller setIntValue:] --Graham ___

Re: breakout game - openGL or quartz?

2009-12-07 Thread BravoBug Software
Everyone seems to have already pointed you in the right direction, but as someone who has specific experience making such a game solo (http://bravobug.com/megabrickbash3000) I wanted to just throw in my .02 that OpenGL is definitely the way to go. NeHe's tutorials will be very handy along the way

Re: Tracking Multiple Touches For Appropriate Label

2009-12-07 Thread Chunk 1978
is this suppose to work for multiple touches where one touch is already present, then another touches the screen? it's not working for me. each time i touch the screen and add an object to the myTouches array the return count always returns 1, no matter how many fingers i already have touching

ABPerson and Note property issue

2009-12-07 Thread Greg Hoover
When setting the value for the note property in an ABPerson record, the new value isn't available until relaunching the application. Scenario: - read the note value for a contact and I get foo - set the value to bar - save the address book - read the note value for the contact but get an empty

Issue with Input method using IMK

2009-12-07 Thread Sai Naveen
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 traces

IKImageBrowserView image quality changing with redraw

2009-12-07 Thread Adam Berger
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. When first drawn, at any scale factor, this looks

Fwd: nscalendardate with 10.4

2009-12-07 Thread Sissy
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 to work with 10.0 and later without

Re: nscalendardate with 10.4

2009-12-07 Thread Nick Zitzmann
On Dec 7, 2009, at 5:32 PM, Sissy wrote: how do i adjust dates using nscalendardate which is supposed to work with 10.0 and later without having the use of nsinteger which only works on 10.5 and later. NSInteger works on all versions of Mac OS X; you just have to define it yourself if

odd problems with NSData / OpenGL

2009-12-07 Thread Henri Häkkinen
Hello. I have odd problems with using NSData, maybe someone could point me what's going wrong here. 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),