Auto Layout of Matrix

2011-09-26 Thread Gerriet M. Denkmann
Because I had a bad experience with localized nib files being out of sync, I am trying a new strategie: Directly after loading a nib, I walk through all subviews replacing titels, stringValues and toolTips. And I use Lions Auto Layout (Xcode 4.1) to get everything arranged nicely. One problem I

Re: Questions about -orderFrontTablePanel:

2011-09-26 Thread Ulf Dunkel
Really nobody can say something on this topic? - - - - - Am 22.09.2011 11:39, schrieb Ulf Dunkel: I wonder about the functionality of the NSTextView method -orderFrontTableView: but couldn't find answers for my following questions in the documentation or googling. The documentation only says:

Re: Core Data : Undo Delete : Cannot fulfill a fault

2011-09-26 Thread Richard Somers
On Sep 25, 2011, at 11:13 PM, Jerry Krinock wrote: I'm debugging a corner case wherein undoing a group containing deletion of a managed object causes a Core Data could not fulfill a fault exception on this object. It would help to understand exactly how managed objects are un-deleted.

Re: Questions about -orderFrontTablePanel:

2011-09-26 Thread Andreas Mayer
Am 22.09.2011 um 11:39 schrieb Ulf Dunkel: The documentation only says: Brings forward a panel allowing the user to manipulate text tables in the text view., but it also immediately inserts a default table in the currently selected text view, if any. A search brings up the Text Layout

Vertical NSplitViews buggy in Lion?

2011-09-26 Thread Martin Hedenfalk
Hi, I'm having problems with vertical NSSplitViews in Lion. I'm dynamically adding subviews and nesting horizontal and vertical NSSplitViews. I don't get these problems in Snow Leopard. Splitting horizontally seems to work fine, but splitting vertically causes several problems: - divider

Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Philip McIntosh
I have a calculation project using buttons to input numbers into a UILabel. I want it to format the numbers as they are entered to display grouping separators. It has been a struggle but so far the best I have ben able to achieve is this (I got the basic idea from a post at stackoverflow.com):

How to quickly paint to a Cocoa view from a bitmap in memory

2011-09-26 Thread Vojtěch Meluzín
Hi folks, I'm implementing a crossplatform (not-only GUI) library, where everything is drawn internally to an RGBA bitmap and then just copied to screen. On Windows it works like charm especially since there is a support for in-memory bitmaps. But I don't see such a feature on Mac. I ended up

Problems with NSApp runModalForWindow

2011-09-26 Thread Vojtěch Meluzín
Hi, I'm creating a GUI system for AU/VST plugins. The host creates the view and the rest is based of modal windows, so I'm using NSApp runModalForWindow for that. But there are a few problems: 1) NSApp runModalForWindow does not activate the window. Right now I'm testing it as an application not

How to create an expression?

2011-09-26 Thread Willeke
hi, How do I programmatically create the $x.firstname and .@count parts of this expression? SUBQUERY(residents, $x, $x.firstname == Jane $x.lastname == Doe).@count When I create a subquery predicate with predicateWithFormat:, the class of the $x.firstname and .@count expressions is

Re: Vertical NSplitViews buggy in Lion?

2011-09-26 Thread Raleigh Ledet
Have you filed a radar? You already have a test project, so the hard part is done. Please be sure to attach the test project to the radar. -raleigh On Sep 23, 2011, at 4:03 AM, Martin Hedenfalk wrote: Hi, I'm having problems with vertical NSSplitViews in Lion. I'm dynamically adding

Re: How to create an expression?

2011-09-26 Thread Dave DeLong
I don't think it's possible without a format string. $x.firstName gets turned into an expression of type NSFunctionExpression. The operator is a variable expression, and the first argument is an expression with a private type (10). gdb shows that the class of that argument is

Re: Core Data : Undo Delete : Cannot fulfill a fault

2011-09-26 Thread Jerry Krinock
On 2011 Sep 26, at 03:48, Richard Somers wrote: My rough testing of a managed object (no undo grouping) produced the following results… Thank you, Richard. I agree with those results. Regarding the contents of the undo and redo stack you could inspect it's contents using something like

Re: How to quickly paint to a Cocoa view from a bitmap in memory

2011-09-26 Thread koko
I too am working in a cross platform environment and use bitmaps in an NSView. I use the code below and it is fast enough to pan , scroll etc with no sense of sluggishness. My code looks a little different than what you have submitted. You might re-factor to my model. CGColorSpaceRef

Re: How to quickly paint to a Cocoa view from a bitmap in memory

2011-09-26 Thread koko
Third line shoul be CGDataProviderRef provider; On Sep 26, 2011, at 12:28 PM, koko wrote: I too am working in a cross platform environment and use bitmaps in an NSView. I use the code below and it is fast enough to pan , scroll etc with no sense of sluggishness. My code looks a little

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread Jerry Krinock
On 2011 Sep 25, at 11:10, Vojtěch Meluzín wrote: 3) When I use runModalForWindow inside another modal loop, it often crashes with some weird exception from the release pool. I remember one time I accidentally got a modal session inside of another modal session and saw crashes. The solution

Re: Core Data : Undo Delete : Cannot fulfill a fault

2011-09-26 Thread Dave Fernandes
Jerry, Does the deleted object have relationships? And if so, what is the state of those objects? Dave On 2011-09-26, at 2:27 PM, Jerry Krinock wrote: On 2011 Sep 26, at 03:48, Richard Somers wrote: My rough testing of a managed object (no undo grouping) produced the following results…

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread koko
I cannot agree with not nesting modal sessions in modal session as I do it with no ill effects. -koko On Sep 26, 2011, at 12:48 PM, Jerry Krinock wrote: On 2011 Sep 25, at 11:10, Vojtěch Meluzín wrote: 3) When I use runModalForWindow inside another modal loop, it often crashes with some

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread Vijay Malhan
2011/9/25 Vojtěch Meluzín meldaproduct...@gmail.com Hi, I'm creating a GUI system for AU/VST plugins. The host creates the view and the rest is based of modal windows, so I'm using NSApp runModalForWindow for that. But there are a few problems: 1) NSApp runModalForWindow does not activate

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Fritz Anderson
On 23 Sep 2011, at 6:48 PM, Philip McIntosh wrote: I have a calculation project using buttons to input numbers into a UILabel. I want it to format the numbers as they are entered to display grouping separators. It has been a struggle but so far the best I have ben able to achieve is this

Re: Numeric Entry and Formatting With NSNumberFormatter Won't Append Zeros

2011-09-26 Thread Fritz Anderson
On 26 Sep 2011, at 2:33 PM, Fritz Anderson wrote: Once you've tamed those issues, see if your Forgive me… Once you've tamed those issues, see if your problem persists. Put a breakpoint at the beginning of the target method, step through, and see if the values are what you expect them to be.

Re: Core Data : Undo Delete : Cannot fulfill a fault

2011-09-26 Thread Richard Somers
On Sep 26, 2011, at 12:34 PM, Jerry Krinock wrote: Note: It looks like we have a private discussion going on here. I'm not sure if that was intentional. Anyhow… Another individual took it private for some reason. As I said, nothing is being fetched at this point. As I said in my other

Re: Vertical NSplitViews buggy in Lion?

2011-09-26 Thread Martin Hedenfalk
Filed as radar 10187396. So I guess I'm looking for a workaround. Does anyone have an idea what I could try? .martin 26 sep 2011 kl. 18:56 skrev Raleigh Ledet: Have you filed a radar? You already have a test project, so the hard part is done. Please be sure to attach the test

OT -Dev forums

2011-09-26 Thread Development
Have any of you been able to access the developer forums on apple since yesterday?___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: How to quickly paint to a Cocoa view from a bitmap in memory

2011-09-26 Thread koko
I alos forgot to say that x and y below are pixels x and pixels y of the bitmap, i.e. its size. On Sep 26, 2011, at 12:28 PM, koko wrote: I too am working in a cross platform environment and use bitmaps in an NSView. I use the code below and it is fast enough to pan , scroll etc with no

Re: OT -Dev forums

2011-09-26 Thread Tim Schröder
Nope. Before it has been awfully slow to load since a couple of days. Am 26.09.2011 um 22:46 schrieb Development: Have any of you been able to access the developer forums on apple since yesterday?___ Cocoa-dev mailing list

Re: How to quickly paint to a Cocoa view from a bitmap in memory

2011-09-26 Thread Lee Ann Rucker
If you named them width and height, you wouldn't have to add notes like that for other people reading your code. On Sep 26, 2011, at 1:46 PM, koko wrote: I alos forgot to say that x and y below are pixels x and pixels y of the bitmap, i.e. its size. On Sep 26, 2011, at 12:28 PM, koko

searching for strings containing

2011-09-26 Thread Koen van der Drift
How do I use isEqualToString with strings that contain a ? The string I try to find is for instance: name= foo Type=bar So: if ([myString isEqualToString: @name= foo Type=bar) Gives an error because there are too many symbols. I looked into replacing the with ' by using

Re: searching for strings containing

2011-09-26 Thread Graham Cox
Escape the using a backslash, i.e. \ e.g. NSString* string = @this is\quoted\; --Graham On 27/09/2011, at 10:26 AM, Koen van der Drift wrote: How do I use isEqualToString with strings that contain a ? The string I try to find is for instance: name= foo Type=bar So: if

Re: searching for strings containing

2011-09-26 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/26/11 5:26 PM, Koen van der Drift wrote: How do I use isEqualToString with strings that contain a ? The string I try to find is for instance: name= foo Type=bar So: if ([myString isEqualToString: @name= foo Type=bar) Gives an error

controller question

2011-09-26 Thread Ariel Feinerman
Hi, if I use persistence NSMutableArray as content array in NSArrayController so [arrayController setContent: m_array]; will controller copy one or retain? So every deletion or addition in the controller will come back to origin. Or we must synchronize one or get from controller to write to url?

Re: controller question

2011-09-26 Thread Quincey Morris
On Sep 26, 2011, at 19:03 , Ariel Feinerman wrote: if I use persistence NSMutableArray as content array in NSArrayController so [arrayController setContent: m_array]; will controller copy one or retain? The array controller will *observe* the array, not copy it. So every deletion or addition

[Moderator[ Re: OT -Dev forums

2011-09-26 Thread Scott Anguish
If you can be patient guys, there have been some issues, but everything is getting ironed out. I know it’s frustrating. But there are people devoting much time to it. I can’t give you a timeframe, I’m not in the loop on that. I’ve bcc’d a WWDR contact who might be helpful. In the meantime,

Re: searching for strings containing

2011-09-26 Thread Koen van der Drift
Thanks. The string I'm trying to match in an xml file that I'm parsing using NSXMLElement. Here's part of the xml fie: Item Name=one Type=Stringvalueone/Item Item Name=two Type=Stringvaluetwo/Item Item Name=three Type=Stringvaluethree/Item What I now found out is that

Re: [Moderator[ Re: OT -Dev forums

2011-09-26 Thread Michael Jurewitz
Hi all, You should find the performance problems are now resolved. My sincerest apologies for the slowness and connection drops over the past week. All should be fine now. Michael Jurewitz . Application Frameworks, Developer Tools and Performance Evangelist . j...@apple.com On Sep 26,

Re: searching for strings containing

2011-09-26 Thread Koen van der Drift
Ah, found it, that info is in the attributeDict. - Koen. On Sep 26, 2011, at 11:42 PM, Koen van der Drift wrote: Thanks. The string I'm trying to match in an xml file that I'm parsing using NSXMLElement. Here's part of the xml fie: Item Name=one Type=Stringvalueone/Item