performSelectorOnMainThread problem

2009-05-28 Thread Ben Einstein
Does anyone know of any issue that would cause performSelectorOnMainThread to not actually perform the selector but not report any kind of error? I use threads very often and have never had a problem like this, but when I call: [aControllerObject

Re: performSelectorOnMainThread problem

2009-05-28 Thread Ben Einstein
On May 28, 2009, at 12:36 PM, Jeff Johnson wrote: Three general possibilities: (1) aControllerObject is nil. Definitely not the problem because it works when calling performSelector: without the mainThread part. (2) The main run loop is not running for some reason. The main run loop

Re: performSelectorOnMainThread problem SOLVED

2009-05-28 Thread Ben Einstein
, Corbin Dunn wrote: On May 28, 2009, at 9:46 AM, Ben Einstein wrote: On May 28, 2009, at 12:36 PM, Jeff Johnson wrote: Three general possibilities: (1) aControllerObject is nil. Definitely not the problem because it works when calling performSelector: without the mainThread part. (2

Re: performSelectorOnMainThread problem

2009-05-28 Thread Ben Einstein
wrote: On Thu, May 28, 2009 at 9:46 AM, Ben Einstein beinst...@me.com wrote: (2) The main run loop is not running for some reason. The main run loop is waiting to hear back from the completion of the worker What do you mean by waiting? Is it blocked on something? -Shawn

NSPredicate with non-string keys

2009-03-23 Thread Ben Einstein
. If there's no way to do this, I've also tried ALLKEYS, but I can't get that to work either. Is this possible? If it matters, I'm just creating the predicate with predicateWithFormat: and sorting an array. Thanks in advance, Ben Einstein ___ Cocoa

Re: NSPredicate with non-string keys

2009-03-23 Thread Ben Einstein
: On Mon, Mar 23, 2009 at 5:03 PM, Ben Einstein beinst...@me.com wrote: I was wondering if anyone knows how to use NSPredicate on values with keys that are NSNumbers (or any non-NSString, for that matter). I've poured over the documentation and tried many things, from converting to a string

Re: NSPredicate with non-string keys

2009-03-23 Thread Ben Einstein
lowercase keys is only true for KVC compliance (filtering non-plist objects), not when filtering arrays of dictionaries, where numbers ARE valid keys. But NSPredicate doesn't seem to think so. Ben On Mar 23, 2009, at 5:48 PM, Kyle Sluder wrote: On Mon, Mar 23, 2009 at 5:18 PM, Ben Einstein beinst

Floating NSPanel and runModalForWindow: problems

2009-03-15 Thread Ben Einstein
anyone else noticed this? Ben Einstein ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update

DO disconnect when main thread blocked

2008-08-24 Thread Ben Einstein
and need to look around for a bit, will loose their connections. I think the answer to this problem is to somehow put the client objects in a different thread, but I'm not sure how to do that. Has anyone else had this problem? Is there an easy fix? Thanks, Ben Einstein

Re: Graphing With Google Charts API

2008-06-01 Thread Ben Einstein
I looked into this before. While Google's API is pretty good, it takes a bunch of work to customize charts and graphs just the way you want. I believe there's also a limit on the number of charts a given user can generate, although I can't recall what this number is. After playing with all

Rendering issues with Core Animation and setWantsLayer:

2008-05-20 Thread Ben Einstein
a few posts on forums and such but no real solutions or suggestions. Is there an answer I'm not finding? Thanks, Ben Einstein ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

NSForm bug?

2008-05-11 Thread Ben Einstein
I've been playing with NSForm the first time. I'm quite surprised that I can easily change the font of the cell (title or value) but I can't easily change the color as you can with plain ole' NSTextField(Cell). Anyway, no big deal right? There are the attributedStrings methods. A little

Re: BLOBs, MySQL, hex. Oh my

2008-05-08 Thread Ben Einstein
you would have to UN-hexcode yourself ... if this is the case, then the problem lies in the table definition, you just have to make sure to declare the column as BLOB rather than TEXT, right ?) Serge. Le 8 mai 08 à 02:16, Ben Einstein a écrit : Hi All, I have an enterprise DB application

Re: BLOBs, MySQL, hex. Oh my

2008-05-08 Thread Ben Einstein
MySQL, pump it into an NSImage, and voila, it works fine. If it's stored in a blob, MySQL is going to give you back byte data, not hex. From: Ben Einstein [EMAIL PROTECTED] Date: Thu, 8 May 2008 12:11:46 -0400 To: Serge Cohen [EMAIL PROTECTED] Cc: cocoa dev cocoa-dev@lists.apple.com Subject

BLOBs, MySQL, hex. Oh my

2008-05-07 Thread Ben Einstein
that mattered. Thanks, Ben Einstein ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your

Re: BLOBs, MySQL, hex. Oh my

2008-05-07 Thread Ben Einstein
going on. Ben Einstein wrote: Hi All, I have an enterprise DB application that once used DO to move some files around (images and zip files, mostly). After some serious testing and lots of reading, I decided to move this to a few different BLOB fields in the database. Despite major warnings

Re: BLOBs, MySQL, hex. Oh my

2008-05-07 Thread Ben Einstein
On May 7, 2008, at 8:05 PM, Ben Einstein wrote: Well, I know what's happening, so I don't think Shark or Instruments can help any. I just don't know WHY it happens. This is the code i've been playing with (from Hayden Stainsby): inti; const char*thumbnailHex

Re: Problems with Split Views?

2008-04-07 Thread Ben Einstein
For the most part, anything you want to do with NSSplitView you can do with RBSplitView (or others) and vice versa. Where RBSplitView really excels is its ease of implementation. Even though NSSplitView in 10.5 is significantly better, I still find that RBSlitView has the upper hand in

Tabless NSTabView IB3 Bug

2008-03-04 Thread Ben Einstein
I'm trying to use a tabless NSTabView in IB3. Before Leopard, you could double-click the space towards the top of the view and select the tabs, even though there was no visible tab. I also believe there was a control in the inspector to specify current tab? Anyway, none of these methods

Re: Tabless NSTabView IB3 Bug

2008-03-04 Thread Ben Einstein
Yea, I know that. But shouldn't there be a more accessible way? I don't use the browser/outline view much and it used to be much easier to change between tabs. Ben On Mar 4, 2008, at 11:10 AM, Benjamin Stiglitz wrote: I'm trying to use a tabless NSTabView in IB3. Before Leopard, you