Re: Analyzing Core Data Conflict List [was: Formatting Core Data Conflict List]

2009-01-30 Thread Ben Trumbull
On Jan 29, 2009, at 11:51 PM, Steve Steinitz wrote: The newVersion and oldVersion shows the version count on the objects really has changed. OK, that makes reading the coflict list clearer. So that version count is an ever-incrementing number -- as long as the app is running? For

NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
Hello all, that's me again with my predicate editor problems :) I subclassed predicate editor's row and replaced default text editor with my NSTokenField in -templateViews. Predicates, that match my template, look like: ANY Tags IN {tag1, tag2, tag3} In -setPredicate I fill token field with

CComposition in CAOpenGLLayer

2009-01-30 Thread Anshul jain
i am trying to play QCComposition in CAOpenGLLayer here is the snippet of the code Thanks Anshul jain ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Disabling sorting in a programatically generated table

2009-01-30 Thread Ken Tozier
Hi I need to completely disable sorting in a programatically generated table, but have found that no matter what I try, clicking on the column header sorts the table. I've set the following sort descriptors to nil // On the table [table setSortDescriptors: nil]; // On the column [column

RE: QCComposition in CAOpenGLLayer

2009-01-30 Thread Anshul jain
i am trying to play QCComposition in CAOpenGLLayer Sorry for the earlier post here is the snippet of the code According to the documentation of QCrenderer this should work fine. but at final output nothing is displayed. Can anyone tell me where i am going wrong. - (id) init {

Finding Thai Words

2009-01-30 Thread Gerriet M. Denkmann
The logical order for Thai words is: consonant, tone mark, vowel. But if one writes with a pen, one almost always writes: consonant, SARA I, MAI EK - because this is a natural order from bottom to top. The good thing is: the find in NSString (without NSLiteralSearch) does not care about

Issues with Inheritance and collections?

2009-01-30 Thread Devraj Mukherjee
Hi all, I have two classes DomainLogicBase and Vehicle where Vehicle inherits from DomainLogicBase (there are other classes in the project that inherit from DomainLogicBase), DomainLogicBase has some helper functions that all my models use and it also has some common vars like UID that all my

How to find whether the file exists on Hard disk or othe mounted devices?

2009-01-30 Thread Arun
Hi All How to find whether the file exists on Hard disk or othe mounted devices? -Arun ___ 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: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-30 Thread Carlo Gulliani
as i understood, when i use full screen app, new NSView component is create. As i told i use flash in my app and for test when my app is launched i wait some time when my flash's animation will changed and switch app to full screen, i've seen that my flash began play again from first frame. I

Is there any Objective C supported code review tool?

2009-01-30 Thread Ashish Tiwari
Hi All, Please name me code review tool (Freeware preferred) that is commonly used by Mac/ObjectiveC/XCode developer community. Thanks in advance. Ashish ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Thai Dictionary

2009-01-30 Thread Gerriet M. Denkmann
I have just made a Thai-Englisch Dictionary, based on stardict- lexitron-te-2.4.2.tar.bz2 from http://stardict.sourceforge.net/Dictionaries_misc.php . But when I enter: ผล I get a list of 79 words, which are not in alphabetic order at all. Not even odered via compare: much less the correct

Re: Is there any Objective C supported code review tool?

2009-01-30 Thread Jean-Daniel Dupas
Le 30 janv. 09 à 13:30, Ashish Tiwari a écrit : Hi All, Please name me code review tool (Freeware preferred) that is commonly used by Mac/ObjectiveC/XCode developer community. There is the as-yet-unnamed clang static analyzer that can help you to find common error. It's not full

Re: NSTask Leaking...

2009-01-30 Thread Rob Keniger
On 30/01/2009, at 11:02 PM, Kirk Kerekes wrote: Sorry about that... http://developer.apple.com/samplecode/CryptoSample/index.html Thanks, it works now. I had to modify the CryptoSample code and convert a bunch of uint32 types to CSSM_SIZE, but it compiles fine. -- Rob Keniger

Re: How to find whether the file exists on Hard disk or othe mounted devices?

2009-01-30 Thread Jerry Krinock
On 2009 Jan 30, at 3:28, Arun wrote: How to find whether the file exists on Hard disk or othe mounted devices? This is a one of those very short questions that has many long answers. I wrote some stuff a few months ago that will give you some code and keywords to begin further

Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle

2009-01-30 Thread Rick Hoge
Thanks for the replies - it's clear that it's a problem in my NSCoding support (see comment below) On 29-Jan-09, at 5:18 PM, Nick Zitzmann wrote: On Jan 29, 2009, at 2:32 PM, Rick Hoge wrote: -(id)initWithCoder:(NSCoder*)decoder { self = [super initWithCoder:decoder]; // Returns

Re: Analyzing Core Data Conflict List

2009-01-30 Thread Steve Steinitz
Hi Ben, Thanks for your reply. I've made some comments and asked a couple questions. In particular please see the one (at the end) about prefetching in an NSArrayController scenario. On 30/1/09, Ben Trumbull wrote: While we strongly discourage using no inverse relationships, something

Re: Is there any Objective C supported code review tool?

2009-01-30 Thread Geoff Beier
Codestriker supports objective-c. I don't know how commonly it's used by Mac/ObjectiveC/XCode developer community. HTH, Geoff On Fri, Jan 30, 2009 at 7:30 AM, Ashish Tiwari ashish_tiw...@persistent.co.in wrote: Hi All, Please name me code review tool (Freeware preferred) that is commonly

NSFileHandle or a better way?

2009-01-30 Thread Jaime Magiera
Hi folks, I've been using NSFIleHandle for a project that inserts data into a file and synchs it back to disk. Everything went smoothly until the app started getting used for larger files ( 200 megs). First, I ran into the NSFileHandle - NSData 256 megs conundrum. That was solved by, as

Re: Disabling sorting in a programatically generated table

2009-01-30 Thread Keary Suska
On Jan 30, 2009, at 1:59 AM, Ken Tozier wrote: Hi I need to completely disable sorting in a programatically generated table, but have found that no matter what I try, clicking on the column header sorts the table. I've set the following sort descriptors to nil // On the table [table

Re: NSFileHandle or a better way?

2009-01-30 Thread Keary Suska
On Jan 30, 2009, at 7:44 AM, Jaime Magiera wrote: I've been using NSFIleHandle for a project that inserts data into a file and synchs it back to disk. Everything went smoothly until the app started getting used for larger files ( 200 megs). First, I ran into the NSFileHandle - NSData 256

Re: Sizing table columns to fit data - a solution looking for suggestions

2009-01-30 Thread Corbin Dunn
Below is a reasonably generic Cocoa solution for implementing this behavior. The tableView I developed this for uses an arrayController with individual column bindings; not the old school -dataSource methods for handling the data. This code should exist in tableView's delegate. This

Re: Is there any Objective C supported code review tool?

2009-01-30 Thread Benjamin Stiglitz
Please name me code review tool (Freeware preferred) that is commonly used by Mac/ObjectiveC/XCode developer community. Review Boards supports any code, and I believe supports Objective-C syntax highlighting. http://www.review-board.org/ -Ben ___

Re: Sizing table columns to fit data - a solution looking for suggestions

2009-01-30 Thread Steve Cronin
Corbin; Hey thanks for replying! First off, don't use the 'tableView:' prefix for your own delegate methods. Consider what would happen if AppKit introduced the same delegate method in a future release. Well, I can tell you from experience that it won't be good. So, please make it

Re: Sizing table columns to fit data - a solution looking for suggestions

2009-01-30 Thread Corbin Dunn
On Jan 30, 2009, at 8:33 AM, Steve Cronin wrote: Corbin; Hey thanks for replying! First off, don't use the 'tableView:' prefix for your own delegate methods. Consider what would happen if AppKit introduced the same delegate method in a future release. Well, I can tell you from

Registering a protocol handler for an App

2009-01-30 Thread Dave
Hi All, In order to register an Application to handle a protocol, do I have to change anything other than add URL Types in the Plist file? I'm having problems with my application not being opened when a protocol request is sent with a protocol ID that my App is registered for, e.g. it's

Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
Hi all, It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been using this exact combination through it's entire development. I have

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread jonat...@mugginsoft.com
On 30 Jan 2009, at 17:14, Kevin Ross wrote: Hi all, It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been using this exact combination

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Sean McBride
On 1/30/09 9:14 AM, Kevin Ross said: It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been using this exact combination through it's entire

Re: CGAffintransform and UIImage Views

2009-01-30 Thread David Duncan
On Jan 29, 2009, at 10:24 AM, nasser salami wrote: Hello, im a newbie iphone developer and i m trying to smoothly scale an image view up and then return to the original state. here what i did but it did not work : so can you tell what it is that i did wrong? i'm sorry if it sounded

Re: QCComposition in CAOpenGLLayer

2009-01-30 Thread David Duncan
On Jan 30, 2009, at 1:03 AM, Anshul jain wrote: i am trying to play QCComposition in CAOpenGLLayer Why not use the QCCompositionLayer? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Serial IO seems to be starving UI

2009-01-30 Thread A.M.
On Jan 30, 2009, at 2:08 AM, Rick Mann wrote: Sorry for the cross-post, but I thought both these lists might have advice to offer. Please don't cross-post. Try one list, then the other. I just dusted off an app I'd worked on several months ago. It used to work fine (prior to 10.5.6), but

Re: NSMouseEntered during drag op, losing window reference

2009-01-30 Thread Luke Evans
Erg. This one is driving me loopy. With mouse events suddenly losing their window pointer when the mouse is dragged outside the window and then back, I've tried substituting a newly created NSMouseEntered _with_ the correct window (and other elements) from the windowless NSMouseEntered

Re: NSFileHandle or a better way?

2009-01-30 Thread Jaime Magiera
On Jan 30, 2009, at 11:08 AM, Keary Suska wrote: I suspect your bottleneck is the filesystem. To know for sure you could try the raw C calls and see if it speeds up. In any case, instead of doing a grow/shrink on the file, write to a temp file instead then swap them. This way you could

CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
I've been working on my first CoreData project and I have a question regarding dynamically generated accessors for to-many relationships and KVC... I'll keep it as simple as possible, let's assume I have a Department entity which contains many Employees entities from what I understand

animation keys

2009-01-30 Thread Matt Neuburg
This is a documentation question, really. So, it turns out that when you call replaceSubview: through an animator proxy, the @subviews animation is triggered. You can modify what happens during replaceSubview: by adding your own animation to a view's dictionary under the key @subviews. My

Stroking on the inside with NSBezierPath

2009-01-30 Thread Ulai Beekam
The default stroke seems to be one that assumes the path you make is the center of the stroke. How can I make the stroke be on one of the *side* of the path? Depending on how you look at it it could be to the right, left, outside or inside. Any way to modify that? Thanks,U

coreData+bindings+IB challenge.

2009-01-30 Thread eblugamma
hey guys, got a coreData+Bindings+IB challenge that I just can't figure out. The apple docs and the obligatory search of the various channels of dev data has yielded zip. so to boil it down to a clear and simple as it can be... I have 2 entities : entA and entB. entA has a to-many

Re: Stroking on the inside with NSBezierPath

2009-01-30 Thread Matthew Johnson
The default stroke seems to be one that assumes the path you make is the center of the stroke. How can I make the stroke be on one of the *side* of the path? Depending on how you look at it it could be to the right, left, outside or inside. Any way to modify that? Thanks,U Just set the

Re: Stroking on the inside with NSBezierPath

2009-01-30 Thread glenn andreas
On Jan 30, 2009, at 2:19 PM, Ulai Beekam wrote: The default stroke seems to be one that assumes the path you make is the center of the stroke. How can I make the stroke be on one of the *side* of the path? Depending on how you look at it it could be to the right, left, outside or

Re: NSMouseEntered during drag op, losing window reference

2009-01-30 Thread Luke Evans
OK. The window nil thing may have been a herring rouge thanks to the debugger not showing values correctly grr. However, the effect remains: - I start the drag in the window/view - Drag to the outside of the window - Drag events are dispatched to the window, and always arrive in my view

Re: Re: Why does NSTableView stop responding to validateMenuItem: ?

2009-01-30 Thread knowles . doug
Jason, Yes, I've read up on menu validation (more than once). I got here because my application has a few table and/or outline views in the document window, and I wanted Select All to be directed to one in particular (a master list) whenever the current first responder does not respond to

Printing WebView as a subview

2009-01-30 Thread John Nairn
I found out how to easily print a WebView that follows page margins and paginates correctly just be grabbing the documentView of the mainFrame, which as I recall was to print the NSView found at [ [ [myWebView mainFrame] frameView] documentView] But now I want to print a WebView that

Re: How to draw text with fade out effect?

2009-01-30 Thread Douglas Davidson
On Jan 29, 2009, at 5:08 PM, Peter N Lewis wrote: One option is to draw the end of the string character by character with varying alphas. Glyph by glyph, really, in the general case. You can take a look at the CircleView example for one case of drawing strings glyph by glyph-- with

Re: CoreData relationship/KVC question

2009-01-30 Thread Steve Steinitz
Hi Jean-Nicolas I may not grasp your question but are relationship also KVC? You can do KVC stuff with relationships like employees = [department valueForKey: @employees]; but I doubt that's what you mean. and, will CoreData aumatically call the correct method depending on the type

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
Perhaps my question wasn't clear hehe... What I wanted to know, more or less, is (following my previous Employee/Department example) can I add employees to a Department using KVC For example CoreData generates the following method to add an employee object to a deparment:

Re: CoreData relationship/KVC question

2009-01-30 Thread mmalc Crawford
On Jan 30, 2009, at 1:26 PM, Jean-Nicolas Jolivet wrote: What I wanted to know, more or less, is (following my previous Employee/Department example) can I add employees to a Department using KVC http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html

Re: WritePipeAsync returns error code e00002c2 (Bad Argument)

2009-01-30 Thread Ian was here
I didn't realize there was a USB mailing list. Thanks for the info. I solved my own problem. The second parameter needed to be a 1 for write, not a 2 (which is for a read). --- On Fri, 1/30/09, Dave Camp d...@thinbits.com wrote: From: Dave Camp d...@thinbits.com Subject: Re: WritePipeAsync

Re: CoreData relationship/KVC question

2009-01-30 Thread Frédéric Testuz
Le 30 janv. 09 à 20:14, Jean-Nicolas Jolivet a écrit : I've been working on my first CoreData project and I have a question regarding dynamically generated accessors for to-many relationships and KVC... I'll keep it as simple as possible, let's assume I have a Department entity which

Re: CoreData relationship/KVC question

2009-01-30 Thread Jean-Nicolas Jolivet
Thanks a lot!... I've been reading the Managed Object Accessor Methods over and over but apparently the answer was in Using Managed Object! (To answer my own question, the correct KVC syntax would be) NSMutableSet *employees = [aDepartment mutableSetValueForKey:@employees]; [employees

IKSlideshow and Custom Transitions

2009-01-30 Thread Jeffrey J Barbose
Is there any way to set an IKSlideshow to use different transitions? I can't seem to find a way to set that. Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Serial IO seems to be starving UI

2009-01-30 Thread Rick Mann
On Jan 30, 2009, at 10:21:35, A.M. wrote: What is likely happening is that the NSFileHandle processing is starving the main NSRunLoop. This happens because NSRunLoop processes non-user input before it processes user events (which seems backwards for the main run loop but is nevertheless

RE: Stroking on the inside with NSBezierPath

2009-01-30 Thread Ulai Beekam
The clipping path was indeed what I was looking for to solve this. Thank you sirs! :) The default stroke seems to be one that assumes the path you make is the center of the stroke. How can I make the stroke be on one of the *side* of the path? Depending on how you look at it it could be to

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
On Jan 30, 2009, at 9:37 AM, Sean McBride wrote: On 1/30/09 9:14 AM, Kevin Ross said: It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been

Subversion Problems

2009-01-30 Thread Walker Argendeli
I'm working through Xcode 33 Unleashed and have run into a problem: First, I'm supposed to go into terminal and run the following commands: mkdir -p /Users/Shared/Subversion/Linear cd /Users/Shared/Subversion/ svnadmin create Linear chmod -R a+rwX . ls -l Linear cat Linear/README.txt svn status

Re: Subversion Problems

2009-01-30 Thread Sean McBride
On 1/30/09 5:52 PM, Walker Argendeli said: I'm not really sure what's going wrong here, but I'd really appreciate help. Your question seems to have nothing to do with Cocoa. You should ask on the Xcode list. -- Sean McBride, B. Eng

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
On Jan 30, 2009, at 3:02 PM, Sean McBride wrote: On 1/30/09 2:49 PM, Kevin Ross said: If it's not too much trouble are you able to send me your repro project? I'm wondering why it's not happening with my project anymore. I'm afraid the bug I filed contains not a simple test project, but

CALayer with KVC

2009-01-30 Thread Mohan Parthasarathy
Hi, I am storing some Key-Value Pairs when creating a CALayer. If i read it back immediately, i can read the values intact. Later when i read it in e.g., touchesBegan, the values seem incorrect. From my reading of the document, it says it can store any key/value pairs. Is that wrong understanding

keydown woes update

2009-01-30 Thread David Harper
Hi, It seems i sent my question a moment too soon.  To answer my own question in case anyone is curious, NSPanels, by default return NO for -(BOOL) canBecomeKeyWindow, whereas NSWindows return YES. - Dave h. ___ Cocoa-dev mailing list

Re: NSFileHandle or a better way?

2009-01-30 Thread Andrew Farmer
On 30 Jan 09, at 06:44, Jaime Magiera wrote: I've been using NSFIleHandle for a project that inserts data into a file and synchs it back to disk. ... My apps ends up taking almost a minute to perform all of its functions on a file of 500 megs. Perhaps my overall approach was wrong to start

Re: Serial IO seems to be starving UI

2009-01-30 Thread Kyle Sluder
On Fri, Jan 30, 2009 at 1:21 PM, A.M. age...@themactionfaction.com wrote: What is likely happening is that the NSFileHandle processing is starving the main NSRunLoop. This happens because NSRunLoop processes non-user input before it processes user events (which seems backwards for the main run

Re: Determining Previous Front Process

2009-01-30 Thread Matt Neuburg
On Fri, 30 Jan 2009 15:44:03 -0800, Seth Willits sli...@araelium.com said: Does anyone have any experience with getting the previously front process? I tried using GetFrontProcess in applicationWillBecomeActive, but by that time my app is front. Getting front in applicationDidResignActive returns

Re: Issues with Inheritance and collections?

2009-01-30 Thread Ken Thomases
On Jan 30, 2009, at 5:23 AM, Devraj Mukherjee wrote: I have two classes DomainLogicBase and Vehicle where Vehicle inherits from DomainLogicBase [...] I am adding objects of type Vehicle to an NSMutableArray which are read up from disk from an SQLite database. How are you storing/reading

Re: Determining Previous Front Process

2009-01-30 Thread Seth Willits
On Jan 30, 2009, at 5:48 PM, Matt Neuburg wrote: One possible approach: http://www.cocoabuilder.com/archive/message/cocoa/2006/7/9/167174 This'll work great. Thanks. (I've already posted my code for doing this, so check the archives.) Searching the archives is such a PITA. The search

Re: Determining Previous Front Process

2009-01-30 Thread Rob Keniger
On 31/01/2009, at 12:00 PM, Seth Willits wrote: Searching the archives is such a PITA. The search algorithm is lame. Searching for GetFrontProcess and Neuburg, for example, should *surely* show this thread at the top. Does it? No. It's not even anywhere in the top 100 results. What kind

Re: animation keys

2009-01-30 Thread Ashley Clark
On Jan 30, 2009, at 2:03 PM, Matt Neuburg wrote: This is a documentation question, really. So, it turns out that when you call replaceSubview: through an animator proxy, the @subviews animation is triggered. You can modify what happens during replaceSubview: by adding your own animation

Re: Determining Previous Front Process

2009-01-30 Thread Martin Wierschin
On 2009.01.30, at 6:04 PM, Rob Keniger wrote: On 31/01/2009, at 12:00 PM, Seth Willits wrote: Searching the archives is such a PITA. The search algorithm is lame. Searching for GetFrontProcess and Neuburg, for example, should *surely* show this thread at the top. Does it? No. It's not

Re: keydown woes update

2009-01-30 Thread Rob Keniger
On 31/01/2009, at 10:14 AM, David Harper wrote: It seems i sent my question a moment too soon. To answer my own question in case anyone is curious, NSPanels, by default return NO for -(BOOL) canBecomeKeyWindow, whereas NSWindows return YES. Seems like I should read all my mail before

Core Animation/Core Image Crash

2009-01-30 Thread Simon Haertel
Hi all, In our application we have a window with a layer-backed NSView which has a content filter applied. The view also has a CAAnimation attached, which alters one of the filter's parameters. Our problem is: When we repeatedly close and re-open the window, the application crashes.

OpenMP installation question on Leopard 10.5.6

2009-01-30 Thread jurincie
I am developing a computationally intense application which I need to multi-process to take advantage of the 8 cpu's on my new MacPro with dual quads. I am using Leopard 10.5 OS. After giving up on NSOperationQueue for the time-being, I have chosen to use OpenMP to run my big processing loop

NSOperationQueue bug with leopard 10.5.6?

2009-01-30 Thread jurincie
I have a MacPro with dual quad processors, and would LOVE to be able to multiprocess a computationally intense app I have developed. My current OS is Leopard 10.5.6 I attempted to use NSOperationQueue with NSInvocationOperations and after several frustrating days found multiple websights saying

Re: Drag and drop from NSCollectionView

2009-01-30 Thread Brandon Walkin
I'm also interested in doing this. Have any of you implemented dragging from a collection view in your app, or have any theories on how to go about it? Brandon On 28-Jan-09, at 2:00 PM, Eric Gorr wrote: I am going to need to the same thing (dragging one or more items from a

Re: Newbie Object Sharing Question

2009-01-30 Thread Ken Thomases
On Jan 30, 2009, at 1:51 PM, Joseph Crawford wrote: Why don't you create a base controller that those 2 controllers subclass, that way they would inherit the functionality of reading those properties, also they would inherit the methods for getting, setting, etc. BaseController --

Re: Newbie Object Sharing Question

2009-01-30 Thread Joseph Crawford
Sorry I misunderstood the question then :) Just a newbie trying to lend a hand where I can. Thanks for correcting me. Joseph Crawford On Jan 30, 2009, at 9:47 PM, Ken Thomases wrote: On Jan 30, 2009, at 1:51 PM, Joseph Crawford wrote: Why don't you create a base controller that those 2

Re: NSOperationQueue bug with leopard 10.5.6?

2009-01-30 Thread Nick Zitzmann
On Jan 30, 2009, at 6:32 PM, jurin...@eecs.utk.edu wrote: I attempted to use NSOperationQueue with NSInvocationOperations and after several frustrating days found multiple websights saying NSOperationQueue has a bug with Leopard 10.5, that will be fixed with 10.6. Q1: does anyone know

Re: Serial IO seems to be starving UI

2009-01-30 Thread Michael Ash
On Fri, Jan 30, 2009 at 8:00 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Fri, Jan 30, 2009 at 1:21 PM, A.M. age...@themactionfaction.com wrote: What is likely happening is that the NSFileHandle processing is starving the main NSRunLoop. This happens because NSRunLoop processes non-user

Re: Determining Previous Front Process

2009-01-30 Thread Michael Ash
On Fri, Jan 30, 2009 at 9:00 PM, Seth Willits sli...@araelium.com wrote: On Jan 30, 2009, at 5:48 PM, Matt Neuburg wrote: One possible approach: http://www.cocoabuilder.com/archive/message/cocoa/2006/7/9/167174 This'll work great. Thanks. (I've already posted my code for doing this, so

Re: NSOperationQueue bug with leopard 10.5.6?

2009-01-30 Thread Michael Ash
On Fri, Jan 30, 2009 at 11:25 PM, Nick Zitzmann n...@chronosnet.com wrote: On Jan 30, 2009, at 6:32 PM, jurin...@eecs.utk.edu wrote: I attempted to use NSOperationQueue with NSInvocationOperations and after several frustrating days found multiple websights saying NSOperationQueue has a bug

Re: Determining Previous Front Process

2009-01-30 Thread Andy Lee
On Jan 31, 2009, at 12:22 AM, Michael Ash wrote: Use the google! My rule is never to use a site's search unless it blocks google somehow. The list archives are much better searched using site:cocoabuilder.com (or site:lists.apple.com) than trying to make the built-in search functionality produce

NSTextFieldCell editing text that is an attribute of the bound object

2009-01-30 Thread Luke Evans
The Cocoa docs seem silent on how to achieve this. I have an NSTextFieldCell subclass that gets sent an object from bindings. The reason for sending it an object is that I want the cell to display a number of the object's attributes - which it does nicely through custom drawing. Now I

Re: NSPredicateEditorRowTemplate and NSTokenField

2009-01-30 Thread Vitaly Ovchinnikov
I finally found a solution that seems to work. I subclassed NSTokenField: == @implementation MyTokenField - (void) notifyTarget: (id) sender { NSControl *t = [self target]; [t sendAction:nil to:t]; } - (void)textDidEndEditing:(NSNotification *)aNotification {