Problems with Thai Fonts in 10.6.1

2009-11-04 Thread Gerriet M. Denkmann
When I write ก๊ัม in TextEdit with the Thonburi font, the vowel and the tone mark get superimposed and form one ugly and unreadable blob (the tone mark should be on drawn above the vowel). And when I write ฟำฝำปำฬำ with Ayuthaya and Silom fonts the ำ are all invisible. None of these pro

Re: NSDate / NSXMLParser

2009-11-04 Thread Ingvar Nedrebo
The easiest way is to set the timezone on the formatter: [dateFormatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; On Nov 3, 2009, at 21:54, David Rowland wrote: Thanks to all for this useful discussion. I think I have solved my problem by taking the data from the parser as is an

Re: Should I learn CoreData for this project?

2009-11-04 Thread Ruotger Skupin
more disadvantages to mention: 1. schema updates with every model change if you use an sql store (you have to make a mapping for every single from version/ to version combination you need to support) 2. multithreaded core data is very hard to get right (multiple contexts, data merges) 3. pe

Re: NSDate / NSXMLParser

2009-11-04 Thread Alexander Spohr
The parser CAN parse the timezone and adjust the date accordingly. To parse this date: 20091021T121942+0200 I use this format: MMdd'T'HHmmssZZZ and it works fine. The only thing you need is to find the right timezone format string. Yours might be '-'MM'-'dd'T'HH':'mm':'ssZ Not sure if yo

Re: Should I learn CoreData for this project?

2009-11-04 Thread Kai Brüning
On 4.11.2009, at 11:33, Ruotger Skupin wrote: more disadvantages to mention: 1. schema updates with every model change if you use an sql store (you have to make a mapping for every single from version/ to version combination you need to support) In Snow Leopard Core Data does this automa

Re: Should I learn CoreData for this project?

2009-11-04 Thread jonat...@mugginsoft.com
Core Data is powerful stuff but it can be tough going - very tough going. If you are determined to make your code work you will get through it. If not, it might get the better of you. The fact is that CoreData offers a great deal of functionality. If you want that functionality you either c

Re: Should I learn CoreData for this project?

2009-11-04 Thread Roland King
I have not used core data myself, my only comment is that the best time to learn a technology is when you have a real project which could use it, I find that's a lot better way to get beyond the 10 line examples or whatever simple examples you think up as a 'good way to learn this' and real

Programmatic Binding KVC KVO

2009-11-04 Thread Richard Somers
I have a managed object context with two attached NSObjectControllers in entity mode. Both controllers control the same entity. managed object model nib 1 controller user interface bind in interface builder nib 2 controller user interface (custom view)

Re: Should I learn CoreData for this project?

2009-11-04 Thread Sean McBride
On 11/3/09 8:22 PM, David Hirsch said: >So, I'm hearing folks sing the praises of CoreData, which I have not >yet learned. It seems like a long uphill climb, but if life will be >spectacular afterwards, I'll do it. I am a semi-casual programmer; >I've just finished a couple of small programs tha

Re: UIView animation docs question

2009-11-04 Thread Fritz Anderson
On 3 Nov 2009, at 4:23 PM, lorenzo7...@gmail.com wrote: [UIView setAnimationDidStopSelector:@selector (animationDidStop:finshed:context:)]; -(void)animationDidStop:(NSString *)animationID finished:(NSNumber *) finished context:(void *)context{...} May I point out the spelling of the secon

Re: Programming hot key

2009-11-04 Thread Matt Neuburg
On Tue, 03 Nov 2009 20:06:50 -0800, Eric Schlegel said: > >On Nov 3, 2009, at 6:10 PM, Symadept wrote: > >> Hi, >> >> Anybody tell me can I program a hot key which shall not block the other apps >> responding to it. >> >> Lets say I have registered hot key Command+P for some operation for my app

NSArrayController inside NSTreeController?

2009-11-04 Thread David Catmull
How would I use an NSArrayController to provide the content of one of the child items in an NSTreeController? This is for a NSOutlineView source view, and each group in the source view contains different kinds of items. In some cases, I want them to be Core Data items, so the easiest way to

NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is there a way to add separator Items to an NSPopUpButton using bindings? ___ Cocoa-dev maili

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Kyle Sluder
On Nov 4, 2009, at 6:04 AM, Richard Somers wrote: I have a managed object context with two attached NSObjectControllers in entity mode. Both controllers control the same entity. Important: do you really mean entity, or do you mean managed object? managed object model nib 1

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Mike Abdullah
No there is not. You can perhaps hack it to work by subclassing, but isn't really worth it. On 4 Nov 2009, at 16:26, Eric Gorr wrote: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Dang. Thank you. Almost certainly going to be marked as a duplicate, but I have filed a bug report - rdar://7364344 On Nov 4, 2009, at 11:41 AM, Mike Abdullah wrote: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/co

Cocoa HTML template engine?

2009-11-04 Thread Jens Alfke
I want to populate a WebView with some nicely-styled HTML depicting an Objective-C data model. The nicest way to do this is with some sort of template engine, so I can tweak the output by editing HTML-like templates rather than messing with code. I've already written this twice before, but

Re: NSDate / NSXMLParser

2009-11-04 Thread David Rowland
On Nov 4, 2009, at 1:49 AM, Ingvar Nedrebo wrote: The easiest way is to set the timezone on the formatter: [dateFormatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; Yes! That works. I'm sure I tried it, but I must have misinterpreted the results. _

Re: Programming hot key

2009-11-04 Thread Eric Schlegel
On Nov 4, 2009, at 8:05 AM, Matt Neuburg wrote: > But isn't the real problem that there is no API for discovering what global > hot keys are registered with the system? I've been asking for this since Mac > OS X 10.0; not only do apps need it, users need it. The system must *know* > this, since i

Re: NSDate / NSXMLParser

2009-11-04 Thread David Rowland
On Nov 4, 2009, at 2:48 AM, Alexander Spohr wrote: The parser CAN parse the timezone and adjust the date accordingly. To parse this date: 20091021T121942+0200 I use this format: MMdd'T'HHmmssZZZ and it works fine. The only thing you need is to find the right timezone format string. Yours

NSNumberFormatter for K, M, G, etc.

2009-11-04 Thread Fritz Anderson
The UTS #35 reference doesn't seem to include it, but I'm interested in an NSNumberFormatter that will convert 1024 to "1 K", 3,145,728 to "3 M", and so on. Bonus for rounding and precision specifiers. Does anyone know of existing art, or must I make my own? — F ___

Re: NSArrayController inside NSTreeController?

2009-11-04 Thread Matthew Lindfield Seager
On Thursday, November 5, 2009, David Catmull wrote: > This is for a NSOutlineView source view, and each group in the source view > contains different kinds of items. In some cases, I want them to be Core Data > items, so the easiest way to manage that is to use an array controller. > You may n

Re: NSArrayController inside NSTreeController?

2009-11-04 Thread David Catmull
On Nov 4, 2009, at 10:21 AM, Matthew Lindfield Seager > wrote: You may need to implement NSOutlineView's data source methods. I considered that, but I'm hoping to avoid having to re-implement all the stuff that already works in the normal table view/array controller case. -- David Catmull

Best pattern for similar objects with differences

2009-11-04 Thread Paul Bruneau
Hi- I'm in early development of an app (non-core data, NSDocument app) that will deal with a lot of doors. I have created a door object, SLDoor, which currently contains all of the properties that might be used by any of the several types of doors. There is a doorType property which is wh

Re: Cocoa HTML template engine?

2009-11-04 Thread jonat...@mugginsoft.com
I haven't used it but I recall that MGTemplateEngine can generate html. Might be worth a look. http://mattgemmell.com/2008/05/20/mgtemplateengine-templates-with-cocoa Regards Jonathan Mitchell Developer http://www.mugginsoft.com On 4 Nov 2009, at 17:15, Jens Alfke wrote: I want to popul

Re: Best pattern for similar objects with differences

2009-11-04 Thread Kyle Sluder
It kind of depends on what your app is doing with the doors. For example, you might get away with having a single SLDoor class with a dictionary of attributes, much like one might order a car based on option codes. This makes your app highly flexible in the configurations of data it can deal with

Working around SBObject limitations

2009-11-04 Thread Fritz Anderson
I've deduced that the SBObject subclasses derived from an application's sdef are completely dynamic, and you can't implement categories on them, and you can't send +class to them. Am I right? Is there a way to work around these limitations? The application I'm targeting implements -parent i

Re: Should I learn CoreData for this project?

2009-11-04 Thread Jeffrey Oleander
> 1. Keep going back to the documentation. > It takes time to grasp all the concepts. If something is not clear and complete, submit a comment on the documentation. Every documentation web page has a link to a comment form. ___ Cocoa-dev mai

Re: Working around SBObject limitations

2009-11-04 Thread Kyle Sluder
On Wed, Nov 4, 2009 at 11:11 AM, Fritz Anderson wrote: > 1. The test in this for statement doesn't link, because the AppFolder's > class doesn't appear in my object code. Is there a workaround for this? Use +[SBApplication classForScriptingClass:]. So something like: for (id curr = [self parent

Re: Best pattern for similar objects with differences

2009-11-04 Thread Ken Thomases
On Nov 4, 2009, at 12:47 PM, Paul Bruneau wrote: I'm in early development of an app (non-core data, NSDocument app) that will deal with a lot of doors. I have created a door object, SLDoor, which currently contains all of the properties that might be used by any of the several types of door

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Richard Somers
On Nov 4, 2009, at 9:40 AM, Kyle Sluder wrote: Nib 2 only partly works. Changes made in the custom view do not show up in the managed object model or in the user interface found in nib 1. So now we also need to see your custom view code. Here is the code for nib 2 which only partly works

Don't highlight button's text when clicked

2009-11-04 Thread Gustavo Pizano
Hello. I have a custom NSButtonCell, also my CustomButton, I draw a glossy BackGround in the ButtonCell, and set the text to white-bold color. now I overrode the method: - (void)highlight:(BOOL)flag withFrame:(NSRect)cellFrame inView: (NSView *)controlView{ so set but a little darker glossy

sorting xml using tableview datasource method?

2009-11-04 Thread Chunk 1978
i'm failing to sort the xml data on my tableview. am i suppose to make a model class for the data and have the table view display/sort that instead? i'm quite with this one. am i suppose to enter values in Sort Key and Selector IB fields for each column? doing so returns: -[NSXMLElement compare:

Re: UIView animation docs question

2009-11-04 Thread Matt Neuburg
On Wed, 4 Nov 2009 09:17:30 -0600, Fritz Anderson said: > >On 3 Nov 2009, at 4:23 PM, lorenzo7...@gmail.com wrote: > >> [UIView setAnimationDidStopSelector:@selector >> (animationDidStop:finshed:context:)]; >> >> >> -(void)animationDidStop:(NSString *)animationID finished:(NSNumber *) >> finished

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Matt Neuburg
On Wed, 4 Nov 2009 11:26:16 -0500, Eric Gorr said: >I found this old message, but there was no answer posted and have the >same question... > >http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html > >Is there a way to add separator Items to an NSPopUpButton using >bindings? Here's an e

Re: Working around SBObject limitations

2009-11-04 Thread Fritz Anderson
On 4 Nov 2009, at 1:15 PM, Kyle Sluder wrote: On Wed, Nov 4, 2009 at 11:11 AM, Fritz Anderson > wrote: 1. The test in this for statement doesn't link, because the AppFolder's class doesn't appear in my object code. Is there a workaround for this? Use +[SBApplication classForScriptingClass:

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
On Nov 4, 2009, at 3:38 PM, Matt Neuburg wrote: On Wed, 4 Nov 2009 11:26:16 -0500, Eric Gorr said: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html Is there a way to add separator Items t

Re: Best pattern for similar objects with differences

2009-11-04 Thread Jens Alfke
On Nov 4, 2009, at 10:47 AM, Paul Bruneau wrote: So this is very attractive, but I keep worrying about how I would change a door from one type to another if I utilize these subclasses. Any ideas the best pattern to use? I can't figure out how I would take an existing object of say SLFlushD

[fixed]Re: Don't highlight button's text when clicked

2009-11-04 Thread Gustavo Pizano
Sorry my mistake, as always.. its being fixed, I was setting the glossy on the cells frame and not the background color. I need then to pass a backgroundcolor with an alpha and thats it. thanks thou. G On Nov 4, 2009, at 9:21 PM, Gustavo Pizano wrote: Hello. I have a custom NSButtonCell

Re: PolKit for Leopard and later

2009-11-04 Thread Jens Alfke
On Oct 31, 2009, at 5:43 PM, Pierre-Olivier Latour wrote: I'm actually fairly flexible on giving custom license (say BSD or LGPL) to project owners who contact me. However, depending on the case, I would ask for no compensation (say for a freeware or small shareware) or some reasonable compen

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Kyle Sluder
On Wed, Nov 4, 2009 at 12:17 PM, Richard Somers wrote: > All code in the custom view that touch the num property use the accessor > methods. The controller in the nib is in entity mode and bound to File's > Owner (MyDocument) managed object context. Okay, but as I said before, the default NSObjec

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Jim Correia
On Nov 4, 2009, at 3:17 PM, Richard Somers wrote: @interface MyView : NSView { double num; } @end @implementation MyView - (double)num { return num; } - (void)setnum:(double)newNum { [self willChangeValueForKey:@"num"]; num = newNum; [self didChangeValueForKey:@"num"]; }

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Sean McBride
On 11/4/09 11:26 AM, Eric Gorr said: >I found this old message, but there was no answer posted and have the >same question... > >http://lists.apple.com/archives/cocoa-dev/2005/Jan/msg00886.html > >Is there a way to add separator Items to an NSPopUpButton using >bindings? If you need a popup with

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Eric Gorr
Interesting. Don't suppose you are aware of any sample code which demonstrates how to use this? On Nov 4, 2009, at 4:45 PM, Sean McBride wrote: On 11/4/09 11:26 AM, Eric Gorr said: I found this old message, but there was no answer posted and have the same question... http://lists.apple.com

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Richard Somers
On Nov 4, 2009, at 2:31 PM, Kyle Sluder wrote: This invokes the default implementation of - bind:toObject:withKeyPath:options:, which takes care of the model -> view communication. You now need to take care of the view -> model communication. As described in the User Updates a Value in the

Re: Programmatic Binding KVC KVO

2009-11-04 Thread Rob Keniger
On 05/11/2009, at 8:42 AM, Richard Somers wrote: See mmalc’s Graphics Bindings sample: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html Sometimes Cocoa can be overwhelming. This will help. Thank you so much. :) You might also find this blog post very helpful: http://

Re: Programmatic Binding KVC KVO

2009-11-04 Thread mmalc Crawford
On Nov 4, 2009, at 5:20 pm, Rob Keniger wrote: >>> See mmalc’s Graphics Bindings sample: >>> >>> http://homepage.mac.com/mmalc/CocoaExamples/controllers.html >> >> Sometimes Cocoa can be overwhelming. This will help. Thank you so much. :) > > You might also find this blog post very helpful

NSTreeController, Core Data and root objects

2009-11-04 Thread Rob Keniger
Hi everyone, I have a Core Data model which consists of a simple tree of a particular entity, which has two relationships, parent and children. I have an NSTreeController managing the model, with an NSOutlineView bound to the NSTreeController. This works fine if I set the fetch predicate