NSWindow setShowsResizeIndicator not working

2012-07-01 Thread Sanjay Arora
Hi, I have tried creating a NSWindow programmatically with [window setShowsResizeIndicator:YES]; but it does not show the indicator? Any clue? Regards Sanjay ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

customize NSOutlineView right-click context menu row selection

2012-07-01 Thread Nava Carmon
Hi, I have a contextual menu appears on right-click in my NSOutlineView. When it appears it selects the table row. I want to customize the selection. It's not a usual selection, rather kind of highlighted frame. How do I override it? Thanks! Nava _

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 2 jul. 2012, om 00:57 heeft Andy Lee het volgende geschreven: > If you Command-click the file icon in the window's title bar, you can see the > full path of the file you are looking at. If the path goes to the old > project, close it with File > Close "YourFileName.xib". The keyboard > equiv

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 1 jul. 2012, om 22:59 heeft Jens Alfke het volgende geschreven: >> It immediately showed that the outlets and actions were connected, and on >> inspection they were connected to the .xib in the old project. > > Um, what _exactly_ did it show? There's no way for files in different > projects

Re: opening file without an extension

2012-07-01 Thread Todd Heberlein
On Jul 1, 2012, at 8:19 PM, Charles Srstka wrote: > Does putting an asterisk (*) in the Extensions field for your document type > not work in the sandbox? Excellent! Yes it did. Thanks. Todd ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: opening file without an extension

2012-07-01 Thread Charles Srstka
Does putting an asterisk (*) in the Extensions field for your document type not work in the sandbox? Charles On Jul 1, 2012, at 10:11 PM, Todd Heberlein wrote: > I have an NSDocument subclass, and I want to open a data file that has no > file extension. (It is BSM audit data, and there is no s

opening file without an extension

2012-07-01 Thread Todd Heberlein
I have an NSDocument subclass, and I want to open a data file that has no file extension. (It is BSM audit data, and there is no standard extension). The application is sandboxed. When the open panel pops up, all the regular files are greyed out. Is there a way to let Powerbox (??) let the use

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Andy Lee
On Jul 1, 2012, at 4:54 PM, Richard Altenburg (Brainchild) wrote: > Thanks for your thoughts, Charles. > > No, I did not copy the .xib to a new project. > > I created a new project for iOS wit one view, and created a new class in it > that is to be a subclass of UIView which will contain my draw

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Jens Alfke
On Jul 1, 2012, at 1:54 PM, Richard Altenburg (Brainchild) wrote: > It immediately showed that the outlets and actions were connected, and on > inspection they were connected to the .xib in the old project. Um, what _exactly_ did it show? There's no way for files in different projects to have

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Thanks for your thoughts, Charles. No, I did not copy the .xib to a new project. I created a new project for iOS wit one view, and created a new class in it that is to be a subclass of UIView which will contain my drawing code in drawRect. I copied code from the old project over into the new pr

Re: Base64 encoding of NSImage

2012-07-01 Thread Jens Alfke
On Jul 1, 2012, at 12:16 PM, David Riggle wrote: > This is what I use. Short and sweet. 10.7-only, though. (And not available on iOS.) —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Charles Srstka
On Jul 1, 2012, at 1:39 PM, Richard Altenburg (Brainchild) wrote: > Unfortunately the connections with the .xib from the other project are still > there, which is obviously not what I want. I’m not sure I understand what you mean by this. Did you copy over the .xib from the other project? If s

Re: Base64 encoding of NSImage

2012-07-01 Thread David Riggle
This is what I use. Short and sweet. @implementation NSData (Base64) - (NSData *)dataWithBase64Encoding { CFDataRef retval = NULL; SecTransformRef encodeTrans = SecEncodeTransformCreate(kSecBase64Encoding, NULL); if (encodeTrans != NULL) { if (SecTransform

How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
(You may reply in Caps Lock if this question is too noobish for this list) I wrote an experimental project for Mac OS X. It uses a custom NSView and some user interface controls connected to the view's class in Interface Builder. I want to do about the same project for iOS, so I started a new pr

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 1 jul. 2012, om 19:38 heeft Jens Alfke het volgende geschreven: > It's always better to use an already-tested library than to roll your own, if > it's feasible. Often you are not sure about the status of code you find online. Has it really been tested? Does it still work on my system, with m

Re: Base64 encoding of NSImage

2012-07-01 Thread Jens Alfke
On Jul 1, 2012, at 9:33 AM, Richard Altenburg (Brainchild) wrote: > If you want to be sure which one works for you, it is probably best to read > how Base64 encoding actually works, maybe you find out you can just as easily > roll your own solution. Especially on a fast Mac desktop, it would no

Re: Base64 encoding of NSImage

2012-07-01 Thread Jens Alfke
On Jul 1, 2012, at 8:23 AM, Alexander Hartner wrote: > I am looking at available option to send an NSImage to a web server. The simplest way would jut be to PUT the raw JPEG/PNG/whatever data to a URL on the server. No need to encode it. > I came across gSoap however its licensing model makes

Re: Base64 encoding of NSImage

2012-07-01 Thread Jim Zajkowski
On Sun, Jul 1, 2012 at 1:05 PM, Kyle Sluder wrote: > On Sun, Jul 1, 2012, at 11:23 PM, Alexander Hartner wrote: >> I am looking at available option to send an NSImage to a webserver. > If you're in control over both the client and server, I'd suggest > avoiding sending the image data over JSON.

Re: Base64 encoding of NSImage

2012-07-01 Thread Kyle Sluder
On Sun, Jul 1, 2012, at 11:23 PM, Alexander Hartner wrote: > I am looking at available option to send an NSImage to a webserver. I > came across gSoap however its licensing model makes it not suitable. > Using REST / JSON seems like an easy option however NSDATA does not seem > to be supported by t

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
If you want to be sure which one works for you, it is probably best to read how Base64 encoding actually works, maybe you find out you can just as easily roll your own solution. Especially on a fast Mac desktop, it would not have to be the worlds' most efficient solution, it will be fast anyways

Re: Base64 encoding of NSImage

2012-07-01 Thread Tom Hohensee
Try here. it is a category for nsdata in this post. http://www.thohensee.com/?page_id=435 Tom Sent from my iPhone On Jul 1, 2012, at 10:26 AM, Alexander Hartner wrote: I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it

Re: Base64 encoding of NSImage

2012-07-01 Thread Alex Zavatone
I think that only cocoa collections can be supported by the JSON serializer. Even CLLocations aren't supported since they consist of structs. On Jul 1, 2012, at 11:23 AM, Alexander Hartner wrote: > I am looking at available option to send an NSImage to a webserver. I came > across gSoap however

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
I think the answers given here will help you out: http://stackoverflow.com/questions/392464/any-base64-library-on-iphone-sdk [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 1 jul. 2012, om 17:23 heeft Alexander Hartner het volgende geschreven: > I am looking at ava

Base64 encoding of NSImage

2012-07-01 Thread Alexander Hartner
I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it not suitable. Using REST / JSON seems like an easy option however NSDATA does not seem to be supported by the JSON Serialiser. The one remaining option I considered was to