Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
Hi, for a couple of reasons we migrated our project from mysql to postgres using PGSQLKit. But we are experiencing problems storing UTF8 data. So far we checked the database to be able to store UTF8. When using pgPHPAdmin to store values with German Umlaute it works. When using PGSQLKit chars

Re: asynchronous nsurlconnection in nsoperation

2012-03-22 Thread Ariel Feinerman
Is this for iOS or Mac OS? This for iOS // dispatch_async(kBgQueue, ^{ NSData* data = [NSData dataWithContentsOfURL: myUrl]; // THIS IS WHAT YOU WANT Ariel ** The date is very large their amount is 400 Mb so the asynchronous is necessarily one cannot be in memory at once On Wed, Mar 21,

[Solved] Re: Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
The issue was in PGSQLKit. -(NSString *)sqlEncodeString:(NSString *)toEncode { //size_t result; int error; char *sqlEncodeCharArray = malloc(1 + ([toEncode length] * 2)); // per the libpq doc. const char *sqlCharArrayToEncode = [toEncode cStringUsingEncoding:

CALayer composition changes with frame position

2012-03-22 Thread Markus Spoettl
Hello all, I have a super-strange issue that I have debugged for hours without any progress. I'm at a complete loss to explain what is going on and would appreciate ideas on getting to the bottom of this. I have a custom layer-hosting view with a delegate-drawn hierarchy, there are no filt

Re: asynchronous nsurlconnection in nsoperation

2012-03-22 Thread Andreas Grosam
On Mar 21, 2012, at 4:59 PM, Ariel Feinerman wrote: > Hi, > I wish to insert an asynchronous NSURLConnection into non-concurrent > NSOperation > the reason is to allow necessarily unarchive actions on the streaming date > Is this for iOS or Mac OS? > This for iOS > > The date is very large the

Re: [Solved] Re: Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Andy 'Dru' Satori
Sorry I didn't see this, I was KO'd by the pollen and seasonal allergies. Yes this is an issue with PGSQLkit, I have confirmed it and will be committing a change today based upon yours to address this. Thanks for patch! -- Andy 'Dru' Satori On Thursday, March 22, 2012 at 6:55 AM, Alexande

Re: [Solved] Re: Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
Hi, sorry to hear that, but great to meet you here!! Let's catch up off list. Alex Am 22.03.2012 um 14:20 schrieb Andy 'Dru' Satori: > Sorry I didn't see this, I was KO'd by the pollen and seasonal allergies. > Yes this is an issue with PGSQLkit, I have confirmed it and will be > committi

advice for creating these controls

2012-03-22 Thread Rick C.
Hi, Just looking for an opinion what's the best way to create controls like this: http://cl.ly/191V3Z1C0m2k2U0V443x I initially assumed subclassing NSSegmentedControl, but then I was thinking maybe I can just subclass NSButton and put them together. Or maybe even make this out of a custom vie

Re: advice for creating these controls

2012-03-22 Thread Alex Zavatone
Download the UIControls project from the source code section on Apple's dev site. On Mar 22, 2012, at 10:14 AM, Rick C. wrote: > Hi, > > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSe

Re: advice for creating these controls

2012-03-22 Thread Andreas Mayer
Am 22.03.2012 um 15:14 schrieb Rick C.: > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSegmentedControl, but then I was thinking > maybe I can just subclass NSButton and put them togeth

Easy wifi credentials

2012-03-22 Thread Eric Dolecki
Are there apis or a way to connect an iDevice to a device and have it send current wifi credentials (with user accept/deny popup)? I thought I heard someone say this before but I've been googling not knowing what it's called and have come up empty so far. Thanks ___

Re: advice for creating these controls

2012-03-22 Thread Alex Zavatone
On Mar 22, 2012, at 11:08 AM, Andreas Mayer wrote: > > Am 22.03.2012 um 15:14 schrieb Rick C.: > >> Just looking for an opinion what's the best way to create controls like this: >> >> http://cl.ly/191V3Z1C0m2k2U0V443x >> >> I initially assumed subclassing NSSegmentedControl, but then I was th

Re: CALayer composition changes with frame position

2012-03-22 Thread James Bucanek
Markus Spoettl wrote (Thursday, March 22, 2012 3:59 AM +0100): My problem is that stationaryLayer is composited differently, sometimes opaque, sometimes semi-transparent and I cannot explain why. I've noticed that CA does a lot of image caching during an ani

Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Does it work if you use a for in loop? TJ On Wed, Mar 21, 2012 at 4:28 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Mar 21, 2012, at 13:23 , Quincey Morris wrote: > > > One thing to check: if your 'scrambleState' actually has a parameter: > > > > - (void) scrambleSt

Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Another option would be a container holding just the tiles. On Wed, Mar 21, 2012 at 5:06 PM, James Bucanek wrote: > Pascal Harris > > wrote (Wednesday, March 21, 2012 7:56 AM -): > > > Now I want to scramble the state of each of t

Re: CALayer composition changes with frame position

2012-03-22 Thread T.J. Usiyan
How is the red rectangle drawn? I don't have any great insight right now other than the fact that the change you are talking about happens at a specific place. When the top aligns with the red rectangle. You might consider color space or something like that. Maybe (and I am most certainly guessing

Re: advice for creating these controls

2012-03-22 Thread Andreas Mayer
Am 22.03.2012 um 16:22 schrieb Alex Zavatone: > UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] > initWithItems: > > [NSArray arrayWithObjects: >

Re: CALayer composition changes with frame position

2012-03-22 Thread Markus Spoettl
On 3/22/12 5:36 PM, James Bucanek wrote: My problem is that stationaryLayer is composited differently, sometimes opaque, sometimes semi-transparent and I cannot explain why. I've noticed that CA does a lot of image caching during an animation, and there are sometime differences between the cach

How to tell which thread is which in the debugger?

2012-03-22 Thread Jens Alfke
I’m trying to debug some multithreaded code, but I can’t figure out how to tell which NSThread I create corresponds to which thread in the Xcode debugger view. In other words: my code creates an NSThread and sets its .name property. If I get a description of the NSThread or log it in an NSLog, i

Re: How to tell which thread is which in the debugger?

2012-03-22 Thread Wade Tregaskis
> I was hoping that the ‘name’ property of the NSThread would show up in the > debugger, since it does display names with some threads. But it doesn’t. (Why > not?) How can I set a name that will show up in the debugger — do I need to > use the pthreads API for that? You should try pthread_setn

Re: How to tell which thread is which in the debugger?

2012-03-22 Thread Greg Parker
On Mar 22, 2012, at 11:02 AM, Wade Tregaskis wrote: > Jens Alfke wrote: >> I was hoping that the ‘name’ property of the NSThread would show up in the >> debugger, since it does display names with some threads. But it doesn’t. >> (Why not?) How can I set a name that will show up in the debugger —

Re: Missing header files/folders?

2012-03-22 Thread Eric Wing
> Correct. Note that when setting the path, you can get away with just > pointing to the copy of Xcode that you'd like to bless: > > sudo xcode-select -switch /Applications/Xcode.app Interesting, but as a courtesy note to everybody, those of us who write and use 3rd party tools that depend o

Disabling NSScrollView elasticity in app plist files.

2012-03-22 Thread Alex Zavatone
As a guy who HATES WITH A BURNING PASSION the bouncy elastic NSScrollViews and sudden app termination when they are on my computer's OS, I'd like to ask a few questions in the hopes of minimizing this atrocity against mankind (for me) when/if I have to switch to Lion. As far as I can tell in Li

Re: CALayer composition changes with frame position

2012-03-22 Thread Markus Spoettl
On 3/22/12 3:15 PM, T.J. Usiyan wrote: How is the red rectangle drawn? I don't have any great insight right now other than the fact that the change you are talking about happens at a specific place. When the top aligns with the red rectangle. You might consider color space or something like that.

Re: Disabling NSScrollView elasticity in app plist files.

2012-03-22 Thread Markus Spoettl
On 3/22/12 7:38 PM, Alex Zavatone wrote: As a guy who HATES WITH A BURNING PASSION the bouncy elastic NSScrollViews and sudden app termination when they are on my computer's OS, I'd like to ask a few questions in the hopes of minimizing this atrocity against mankind (for me) when/if I have to swi

Re: Missing header files/folders?

2012-03-22 Thread Joar Wingfors
Hi Eric, When using the command line invocation that I mentioned the developer folder inside of the Xcode app bundle would still end up being selected. I just wanted to call out that you don't have to provide the full path, as that's now more of an implementation detail. Joar On 22 mar 2012,

Re: Missing header files/folders?

2012-03-22 Thread Chris Hanson
On Mar 22, 2012, at 11:24 AM, Eric Wing wrote: >> Correct. Note that when setting the path, you can get away with just >> pointing to the copy of Xcode that you'd like to bless: >> >> sudo xcode-select -switch /Applications/Xcode.app > > Interesting, but as a courtesy note to everybody, tho

Re: Disabling NSScrollView elasticity in app plist files.

2012-03-22 Thread Alex Zavatone
On Mar 22, 2012, at 2:58 PM, Markus Spoettl wrote: > On 3/22/12 7:38 PM, Alex Zavatone wrote: >> As a guy who HATES WITH A BURNING PASSION the bouncy elastic >> NSScrollViews and sudden app termination when they are on my >> computer's OS, I'd like to ask a few questions in the hopes of >> minimi

Re: Disabling NSScrollView elasticity in app plist files.

2012-03-22 Thread Markus Spoettl
On 3/22/12 8:58 PM, Alex Zavatone wrote: OK, so that tells me that you answer is the right one. But still, something is preventing a codesigned app from being edited. There is a codesign switch (the "kill" flag) that causes the process to be terminated if the signature isn't matching the execu

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
On Mar 22, 2012, at 7:14 AM, Rick C. wrote: > Just looking for an opinion what's the best way to create controls like this: > > http://cl.ly/191V3Z1C0m2k2U0V443x > > I initially assumed subclassing NSSegmentedControl, but then I was thinking > maybe I can just subclass NSButton and put them tog

Re: Missing header files/folders?

2012-03-22 Thread Charles Srstka
On Mar 20, 2012, at 11:20 PM, Shane Stanley wrote: > This has come up again. I have a customer who has upgraded to Lion from Snow > Leopard, and there are no header files (which my app uses) in his > /System/Library/Frameworks/. But there is no option to reinstall Xcode with > Xcode 4.3. If y

Re: Why so many public properties all up in my grizzle?

2012-03-22 Thread G S
On Mon, Mar 19, 2012 at 1:35 PM, Sebastian Celis wrote: > 1) Embrace @properties...Exposing _ivars in header files is > gross. You never want people to access them directly, so don't make > those declarations public at all. > > 2) Technically, nothing is truly private in Objective-C, so let's st

Re: Why so many public properties all up in my grizzle?

2012-03-22 Thread T.J. Usiyan
> > > > 2) Technically, nothing is truly private in Objective-C, so let's stop > > trying to completely prevent people from using private APIs. > > > contradiction++ > ___ > > Not quite. You actually CAN hide the ivars and it is odd to expose them because

Re: Why so many public properties all up in my grizzle?

2012-03-22 Thread T.J. Usiyan
Well damn, @package accomplishes the 'compilation unit' request. On Thu, Mar 22, 2012 at 8:36 PM, T.J. Usiyan wrote: > >> > 2) Technically, nothing is truly private in Objective-C, so let's stop >> > trying to completely prevent people from using private APIs. >> >> >> contradiction++ >>

Re: Here's a new idea... or maybe a really old one revisited

2012-03-22 Thread Andreas Mayer
Am 23.03.2012 um 01:09 schrieb William Squires: > Marge takes over, and Xcode - having learned Marge's preferences for source > code formatting, reformats the .h and .m files from Bart's project so it's > nice and tidy according to Marge. That's nice. Only I don't want it to reformat the files

Re: advice for creating these controls

2012-03-22 Thread Lee Ann Rucker
The button/popup combo could still be an NSSegmentedControl. Getting a menu on a segment is just a matter of setMenu:forSegment: - the triangle would have to be part of the icon, because it doesn't do it for you. - Original Message - From: "Seth Willits" To: "Cocoa-Dev List" Sent: Thur

Re: advice for creating these controls

2012-03-22 Thread Rick C.
Thanks everyone for the replies. Yes I guess I just need to get a bit better at subclassing to get the right look. :-) To be sure I would subclass NSSegmentedControl not NSSegmentedCell right? And for the UIControls I guess for the examples right? Yes I'll look into this. And yes the textur

Re: advice for creating these controls

2012-03-22 Thread Lee Ann Rucker
> [UIImage imageNamed:@"segment_tools.png"], You'll save yourself headaches in the future if you don't use extensions in the image name, especially if you someday turn it into a combined 1x & 2x tiff. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: advice for creating these controls

2012-03-22 Thread Seth Willits
On Mar 22, 2012, at 9:49 PM, Lee Ann Rucker wrote: > The button/popup combo could still be an NSSegmentedControl. Getting a menu > on a segment is just a matter of setMenu:forSegment: - the triangle would > have to be part of the icon, because it doesn't do it for you. You're totally right. I h