Re: NSWindow setShowsResizeIndicator not working

2012-07-02 Thread Lee Ann Rucker
Snow Leopard was the last version to have a visible grow zone; which OS are you on? - Original Message - From: "Sanjay Arora" To: cocoa-dev@lists.apple.com Sent: Sunday, July 1, 2012 11:36:42 PM Subject: NSWindow setShowsResizeIndicator not working Hi, I have tried creating a NSWindow

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

2012-07-02 Thread Charles Srstka
On Jul 2, 2012, at 1:01 AM, Richard Altenburg (Brainchild) wrote: > 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, wha

RE: NSWindow setShowsResizeIndicator not working

2012-07-02 Thread Sanjay Arora
I am on Lion. Any alternatives? -Original Message- From: Lee Ann Rucker [mailto:lruc...@vmware.com] Sent: 02 July 2012 12:56 PM To: Sanjay Arora Cc: cocoa-dev@lists.apple.com Subject: Re: NSWindow setShowsResizeIndicator not working Snow Leopard was the last version to have a visible gro

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

2012-07-02 Thread Richard Altenburg (Brainchild)
Thank you for elaborating on this, Charles. I was able to remove any connections to the old project by inserting new IBOutlets and IBActions with new names and pasting the code from the old project into the definition of the new methods. Copying the complete declarations copied over the connecti

NSUndoManager setActionName: oddity

2012-07-02 Thread Conrad Shultz
Greetings, I am using bindings in a (document-based) project in probably the simplest way one can imagine: -My model contains an NSMutableArray -An NSArrayController has its content bound to said NSMutableArray and is configured to prepare content (which takes the form of another custom model

NSInteger vs int vs int32_t

2012-07-02 Thread Andreas Grosam
In a public API, I have to specify integer arguments and return values. The API would be for Objective-C on iOS and Mac OS. What is the preferred type to use in several use cases? For example, one API would need to use an unsigned integer whose values will be quite small, say in a range 0 ... 1

Re: Base64 encoding of NSImage

2012-07-02 Thread Andreas Grosam
On 01.07.2012, at 17:23, 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 the J

NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Motti Shneor
Hello everyone. I have an NSSplitView with dynamic contents (views can be added and deleted in runtime). Views can also be collapsed by the user, or programmatically at certain situations. My problem is this. Each of my views has a minimum size and a maximum size, that must be met anytime, or

Allow FileUpload in iOS 4 or 5

2012-07-02 Thread Vavelin Kevin
Hi there, I have a website developed in ASP.NET posted in a webview. Everything is done except that the fileupload is grayed out and I see no way to set. I know that in a future version of the fileupload will be allowed but is there a way to make iOS 4 or 5? If someone have an idea... Than

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Alex Zavatone
I'm no expert, but in my experience, I'd say it's certainly safer to use a variables that are able to play well in a Cocoa collection, if you're going to need to use other routines like writing them out to a pList or serialize them in a dictionary. I found this out when trying to serialize JSON

Re: NSWindow setShowsResizeIndicator not working

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 12:45 AM, Sanjay Arora wrote: > I am on Lion. Any alternatives? No, because Lion allows you to resize windows from any edge. The resize indicator wouldn't make any sense. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

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

2012-07-02 Thread Kyle Sluder
On Jul 1, 2012, at 11:01 PM, "Richard Altenburg (Brainchild)" wrote: > 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

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Michael Babin
On Jul 2, 2012, at 4:35 AM, Conrad Shultz wrote: > -My model contains an NSMutableArray > -An NSArrayController has its content bound to said NSMutableArray and is > configured to prepare content (which takes the form of another custom model > object) > -Said NSMutableArray is mutated only throu

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 2:35 AM, Conrad Shultz wrote: > - (void)addRecord:(id)sender > { >if (! [[self undoManager] isUndoing]) { >[[self undoManager] setActionName:NSLocalizedString(@"Add Record", > nil)]; >} >[[self arrayController] add:sender]; > } IIRC, you need to put the ca

Re: Base64 encoding of NSImage

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 5:08 AM, Andreas Grosam wrote: > Well, embedding an image encoded in base64 in a JSON document is not that > "RESTful" anyway. Sure it is. Plenty of REST-based APIs do this sort of thing (CouchDB and Atom both come to mind.) The REST principles don't dictate any particular t

Equation style display

2012-07-02 Thread Jean Suisse
Dear all, I was wondering if there is a way to get the "pretty formatted" version of an equation (from an NSString) to display within a view (similar to the way Graph.app displays it). The question is open, any means is acceptable (if not too far-fetched). I know I can get a .png version using

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Fritz Anderson
On 2 Jul 2012, at 6:24 AM, Andreas Grosam wrote: > Anyway, is it preferable to use always Cocoa macros (NSInteger, NSUInteger, > etc.) for an Objective-C API - or may/should I use int, unsigned int, or > maybe int32_t, uint32_t, etc. when it seems more appropriate? It depends on whether it's im

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 4:24 AM, Andreas Grosam wrote: > Anyway, is it preferable to use always Cocoa macros (NSInteger, NSUInteger, > etc.) for an Objective-C API - or may/should I use int, unsigned int, or > maybe int32_t, uint32_t, etc. when it seems more appropriate? Sure, use smaller types if

Re: Base64 encoding of NSImage

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 8:53 AM, Jens Alfke wrote: > > (Of course on the other end it's trickier because how does the decoder know > what strings should be decoded to NSData and which should be left alone? YAML > has type annotations that provide for this, but JSON doesn't.) All the more reason to

Re: Equation style display

2012-07-02 Thread Jean-Daniel Dupas
Le 2 juil. 2012 à 17:55, Jean Suisse a écrit : > Dear all, > > I was wondering if there is a way to get the "pretty formatted" version of an > equation (from an NSString) to display within a view (similar to the way > Graph.app displays it). > The question is open, any means is acceptable (if

Re: Equation style display

2012-07-02 Thread Jean Suisse
Thank you for your reply. Well, I don't know about the Attributed String. The idea is to get the pretty print of thing like (9/10) * sin( x/(2*t) ) without having to process the string myself. On 2 juil. 2012, at 18:15, koko wrote: > Would not NSAttributedString be of use? > > -koko > >

Re: Equation style display

2012-07-02 Thread Jean Suisse
Thank you for your reply. I will investigate this possibility. Does it take much space for the rendering ? I mean, I would like to display it inside a panel (something like a sheet, or an inspector). The pretty print is just a feature that would allow the user to quickly spot any mistake in an

Re: Equation style display

2012-07-02 Thread koko
Would not NSAttributedString be of use? -koko On Jul 2, 2012, at 9:55 AM, Jean Suisse wrote: > Dear all, > > I was wondering if there is a way to get the "pretty formatted" version of an > equation (from an NSString) to display within a view (similar to the way > Graph.app displays it). > The

Re: Equation style display

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 8:55 AM, Jean Suisse wrote: > I was wondering if there is a way to get the "pretty formatted" version of an > equation (from an NSString) to display within a view (similar to the way > Graph.app displays it). > The question is open, any means is acceptable (if not too far-fet

Write Finder plugin

2012-07-02 Thread Rakesh Singhal
Hi All, I already posted this is darwin-dev list and was told to post here. This topic was discussed already but I am not very cleared that how to go ahead to implement a Finder plugin for Mac OS 10.6/10.7. I want to add items in Finder's Contextual menu. These menu items should be displayed only

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Conrad Shultz
Thanks Michael. I was aware of the run loop considerations for NSUndoManager but hadn't seen that note on the NSArrayController method. Thanks for pointing that out. What confuses me, though, is that, contrary to the identical note for -remove:, my approach DOES work in the removal case. Inde

Re: Base64 encoding of NSImage

2012-07-02 Thread Andreas Grosam
On 02.07.2012, at 17:53, Jens Alfke wrote: > > On Jul 2, 2012, at 5:08 AM, Andreas Grosam wrote: > >> Well, embedding an image encoded in base64 in a JSON document is not that >> "RESTful" anyway. > > Sure it is. Plenty of REST-based APIs do this sort of thing (CouchDB and Atom > both come t

Re: Equation style display

2012-07-02 Thread Jean Suisse
Well, it seems that all paths leads towards Webkit and MathML… which unfortunately requires some parsing / rewriting, even for simple equations… Thank you Jens. Best regards, Jean On 2 juil. 2012, at 18:45, Jens Alfke wrote: > > On Jul 2, 2012, at 8:55 AM, Jean Suisse wrote: > > > I'm prett

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Conrad Shultz
Thanks Kyle. As I mentioned the actual action opening the undo group is in the -insertObject:in: method in the model, which does work. My very first thought was an ordering issue so I tried inverting the order of method calling on the wrapper to no avail, but as Michael pointed out this might

NSDocument last document loading

2012-07-02 Thread Todd Heberlein
I have a document-based application, and when it starts it tries to automatically load previously opened documents (running on Lion). Is there a way to disable this behavior in the program? My problem is that the document loads/analyzes data sets, and some of the very large ones can take up to

Re: Write Finder plugin

2012-07-02 Thread Charles Srstka
On Jul 2, 2012, at 11:53 AM, Rakesh Singhal wrote: > Hi All, > > I already posted this is darwin-dev list and was told to post here. This > topic was discussed already but I am not very cleared that how to go ahead > to implement a Finder plugin for Mac OS 10.6/10.7. I want to add items in > Find

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Kyle Sluder
On Mon, Jul 2, 2012, at 10:26 AM, Conrad Shultz wrote: > Thanks Kyle. > > As I mentioned the actual action opening the undo group is in the > -insertObject:in: method in the model, which does work. My very first > thought was an ordering issue so I tried inverting the order of method > calling on

Re: Write Finder plugin

2012-07-02 Thread Kyle Sluder
On Mon, Jul 2, 2012, at 10:23 PM, Rakesh Singhal wrote: > I already posted this is darwin-dev list and was told to post here. This > topic was discussed already but I am not very cleared that how to go > ahead > to implement a Finder plugin for Mac OS 10.6/10.7. I want to add items in > Finder's Co

Adding Properties to NKIssue?

2012-07-02 Thread Dave
Hi, It is possible to add my own properties to the NKIssue Class? I know it's possible in Objective-C but is it advisable? I was thinking of something like this: @interface NKIssue (MyIssue) @property (nonatomic,retain)MutableDictionary* somethingSpecificToMyApp; @end Thanks

Re: Write Finder plugin

2012-07-02 Thread Eric Schlegel
On Jul 2, 2012, at 9:53 AM, Rakesh Singhal wrote: > There are applications (eg. dropbox) which are able to create items in > finder's contextual menu, not service. There should be some way to do it. There is no supported way to do this. Dropbox uses various hacks to make its way into the Finde

Re: Write Finder plugin

2012-07-02 Thread Conrad Shultz
AFAIK Dropbox accomplishes this using private APIs and reverse-engineered hacks. I'd love to hear if there's an official method, but if there isn't you won't be able to take this up further on this mailing list. (Sent from my iPhone.) -- Conrad Shultz On Jul 2, 2012, at 9:53, Rakesh Singhal

Re: [OT] Finite vs Infinite State Machines?

2012-07-02 Thread Dave
On 15 Jun 2012, at 00:54, Graham Cox wrote: On 15/06/2012, at 3:56 AM, Dave wrote: On 14 Jun 2012, at 05:12, Graham Cox wrote: On 14/06/2012, at 8:03 AM, Dave wrote: In assembler this would be implemented is using an "Exchange Instruction" to alter the PC on the stack and cause it to

Re: Equation style display

2012-07-02 Thread Dave DeLong
Hi Jean, In terms of parsing, I've written a library to help with that: https://github.com/davedelong/DDMathParser/ You'll probably want to do something like this: NSString *equation = @"(9/10) * sin( $x/(2*$t) )"; // note that variables need a $ in front of them, for simplicity NSError *er

Re: Equation style display

2012-07-02 Thread Chris Hanson
Mathematical typesetting is actually incredibly complex, and people like Donald Knuth have dedicated significant portions of their careers to it. There's no simple way to go from a textual representation of a formula to a typeset version, not least of which because there's no universally agreed-

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Chris Hanson
NSInteger and NSUInteger also have the advantage of having the same @encode() on 32-bit and 64-bit, which can be important for binary compatibility of archives and IPC between architectures, depending on how you do it. -- Chris On Jul 2, 2012, at 8:58 AM, Jens Alfke wrote: > > On Jul 2, 20

Re: NSDocument last document loading

2012-07-02 Thread Lee Ann Rucker
Subclass [NSWindow restorationClass] and return nil should work. - Original Message - From: "Todd Heberlein" To: Cocoa-dev@lists.apple.com Sent: Monday, July 2, 2012 10:20:05 AM Subject: NSDocument last document loading I have a document-based application, and when it starts it tries to

Re: NSDocument last document loading

2012-07-02 Thread Alex Zavatone
Did you check the docs in Xcode for "Restoring Your Windows and Custom Objects at Launch TIme" or "User Interface Preservation" ? By any chance, do you have a restoreWindowWithIdentifier method in your window classes or is there a YES for isRestorable on the window that holds the view that woul

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 12:06 PM, Chris Hanson wrote: > NSInteger and NSUInteger also have the advantage of having the same @encode() > on 32-bit and 64-bit, which can be important for binary compatibility of > archives and IPC between architectures, depending on how you do it. How can they? They'r

Re: NSDocument last document loading

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 10:20 AM, Todd Heberlein wrote: > My problem is that the document loads/analyzes data sets, and some of the > very large ones can take up to 10 minutes to analyze. Sitting around waiting > 10 minutes for the app to finish starting is a pain, especially when the user > just w

UITableView woes

2012-07-02 Thread C.W. Betts
I'm trying to write an iOS app that displays sentences in a table, but UITableView cuts them off. Will I need to do a custom UITableViewCell or can I make UITableView behave? I want to either display them on two rows or have a scroll bar to see the rest of the sentence.

Re: NSDocument last document loading

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 12:52 PM, Lee Ann Rucker wrote: > Subclass [NSWindow restorationClass] and return nil should work. Rather than subclassing every NSWindow in your app, you could instead add an override of +restoreWindowWithIdentifier:state:completionHandler: to the subclass of NSDocumentContr

Re: NSDocument last document loading

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 2:11 PM, Kyle Sluder wrote: > On Jul 2, 2012, at 12:52 PM, Lee Ann Rucker wrote: > >> Subclass [NSWindow restorationClass] and return nil should work. > > Rather than subclassing every NSWindow in your app, you could instead add an > override of +restoreWindowWithIdentifier:s

Re: NSDocument last document loading

2012-07-02 Thread Conrad Shultz
Also, avoid doing any lengthy operation on the main thread/queue. Even if a user opens a file with the intent to analyze, getting stuck for ten minutes is a suboptimal experience. (Sent from my iPhone.) -- Conrad Shultz On Jul 2, 2012, at 12:52, Lee Ann Rucker wrote: > Subclass [NSWindow r

Re: Adding Properties to NKIssue?

2012-07-02 Thread Nick Zitzmann
On Jul 2, 2012, at 12:31 PM, Dave wrote: > Hi, > > It is possible to add my own properties to the NKIssue Class? I know it's > possible in Objective-C but is it advisable? I was thinking of something like > this: Yes and It Depends. You can't use @synthesize or add ivars in a category, so yo

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Greg Parker
On Jul 2, 2012, at 1:10 PM, Jens Alfke wrote: > I really don't understand the thought behind creating NSInteger. It seems > dangerous to have a 'standard' type whose size isn't fixed. It leads to > mistakes like storing a file size in an NSUInteger — that's fine in 64-bit, > but in a 32-bit app

Re: UITableView woes

2012-07-02 Thread Luke Hiesterman
If you want something potentially scrollable, you want a UITextField. And if you're using custom sub views then you should also be defining a custom UITableViewCell subclass. So yes, time to subclass and write custom stuff. Luke On Jul 2, 2012, at 1:49 PM, C.W. Betts wrote: > I'm trying to wri

Prevent Quarantine message on helper app

2012-07-02 Thread Trygve Inda
When users open my prefpane for the first time they get the OS quarantine message. Then my prefpane has to open a helper app and it pauses for about 30 seconds and then throws up another quarantine message... This time for the helper. How can I have the main app prevent the quarantine message on t

Re: UITableView woes

2012-07-02 Thread Laurent Daudelin
Are you using the standard UITableViewCell or custom cells? I'm assuming they are cut off because the standard cells use a UILabel which displays only one line of text, shrinking it until it reaches the minimum size where, at that point, it just cuts off the rest of the sentence. You will need t

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Charles Srstka
On Jul 2, 2012, at 3:10 PM, Jens Alfke wrote: > On Jul 2, 2012, at 12:06 PM, Chris Hanson wrote: > >> NSInteger and NSUInteger also have the advantage of having the same >> @encode() on 32-bit and 64-bit, which can be important for binary >> compatibility of archives and IPC between architectur

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 3:28 PM, Charles Srstka wrote: > NSInteger is always equal to the native integer size of the host machine; 32 > bits in 32-bit, 64 bits in 64-bit. I would imagine this helps performance, as > the processor will be dealing with its native integer type. It depends. 64-bit valu

Re: UITableView woes

2012-07-02 Thread Hunter Hillegas
Or alternatively, setting the numberOfLines property on the text label to 0 and then calculating the height for each row for the string you'll be passing in. On Jul 2, 2012, at 3:22 PM, Laurent Daudelin wrote: > Are you using the standard UITableViewCell or custom cells? I'm assuming they > ar

Re: UITableView woes

2012-07-02 Thread BareFeetWare
On 03/07/2012, at 6:49 AM, C.W. Betts wrote: > I'm trying to write an iOS app that displays sentences in a table, but > UITableView cuts them off. Will I need to do a custom UITableViewCell or can > I make UITableView behave? I want to either display them on two rows or have > a scroll bar to

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 3:56 PM, Jens Alfke wrote: > > On Jul 2, 2012, at 3:28 PM, Charles Srstka wrote: > >> NSInteger is always equal to the native integer size of the host machine; 32 >> bits in 32-bit, 64 bits in 64-bit. I would imagine this helps performance, >> as the processor will be dealin

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 4:17 PM, Kyle Sluder wrote: >> It depends. 64-bit values are twice as big as 32-bit ones, so they use up >> twice as much L2 cache and RAM. > > I would be surprised if cache is managed at anything other than multiples of > register width (64 bits). That's not the point. Dat

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Kyle Sluder
On Jul 2, 2012, at 4:32 PM, Jens Alfke wrote: > > On Jul 2, 2012, at 4:17 PM, Kyle Sluder wrote: > >>> It depends. 64-bit values are twice as big as 32-bit ones, so they use up >>> twice as much L2 cache and RAM. >> >> I would be surprised if cache is managed at anything other than multiples o

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Jens Alfke
On Jul 2, 2012, at 4:34 PM, Kyle Sluder wrote: > Not necessarily. The CPU could just mask off the top 32 bits when executing > 32-bit opcodes on in-cache data. Each 32-bit value is still taking up 64 bits > of cache space. That's probably a lot easier and more efficient than making > it possib

Re: NSInteger vs int vs int32_t

2012-07-02 Thread David Duncan
On Jul 2, 2012, at 4:34 PM, Kyle Sluder wrote: > On Jul 2, 2012, at 4:32 PM, Jens Alfke wrote: > >> >> On Jul 2, 2012, at 4:17 PM, Kyle Sluder wrote: >> It depends. 64-bit values are twice as big as 32-bit ones, so they use up twice as much L2 cache and RAM. >>> >>> I would be surpr

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Scott Ribe
On Jul 2, 2012, at 5:34 PM, Kyle Sluder wrote: > Not necessarily. The CPU could just mask off the top 32 bits when executing > 32-bit opcodes on in-cache data. Each 32-bit value is still taking up 64 bits > of cache space. That's probably a lot easier and more efficient than making > it possibl

Re: NSUndoManager setActionName: oddity

2012-07-02 Thread Graham Cox
On 03/07/2012, at 3:26 AM, Conrad Shultz wrote: > I'll take a look at GCUndoManager. I'd heard of it being used in the context > of Core Data, but maybe I should consider it here too. (I hate to introduce > third-party dependencies unless absolutely necessary.) It wasn't written with Core Data

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Graham Cox
On 03/07/2012, at 12:21 AM, Motti Shneor wrote: > I really need an advice here. This will sound flippant but it's not meant to be: implement your own split view. NSSplitView is the most bizarre piece of design and difficult to get to behave just how you want even in simple cases like having

Re: NSDocument last document loading

2012-07-02 Thread Lee Ann Rucker
> Oops, I should've said "call -setRestorable:", not -setRestorationClass:. > Going with -setRestorable: is the most direct way to define your explicit > intent. That explains why I didn't find it; I looked for "restoration". Is there a single document that explains how all this fits together,

Re: Prevent Quarantine message on helper app

2012-07-02 Thread Ken Thomases
On Jul 2, 2012, at 5:10 PM, Trygve Inda wrote: > When users open my prefpane for the first time they get the OS quarantine > message. Then my prefpane has to open a helper app and it pauses for about > 30 seconds and then throws up another quarantine message... This time for > the helper. > > How

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Charles Srstka
On Jul 2, 2012, at 5:56 PM, Jens Alfke wrote: > Hey, 1999 called and wants its trendy data format back! Which one? JSON itself originated in 1999. > No one but squares uses XML anymore; JSON is what's hep. ;-) You mean other than CoreData and all of Apple’s plist stuff? Charles __

Re: NSInteger vs int vs int32_t

2012-07-02 Thread Scott Ribe
On Jul 2, 2012, at 5:42 PM, David Duncan wrote: > I suspect you are both talking past each other. > > Jens' assertion is that if you had a 128 byte cache, you could store either 8 > 64-bit integers or 16 32-bit integers in it. Whereas Kyle is asserting that > the CPU need only read 32-bits at a

Re: NSDocument last document loading

2012-07-02 Thread Todd Heberlein
On Jul 2, 2012, at 2:13 PM, Kyle Sluder wrote: > Oops, I should've said "call -setRestorable:", not -setRestorationClass:. > Going with -setRestorable: is the most direct way to define your explicit > intent. Below is what I added to my Document class (which works with some interesting cavea

Re: NSDocument last document loading

2012-07-02 Thread Markus Spoettl
On 7/2/12 7:20 PM, Todd Heberlein wrote: I have a document-based application, and when it starts it tries to automatically load previously opened documents (running on Lion). Is there a way to disable this behavior in the program? My problem is that the document loads/analyzes data sets, and so

Re: Allow FileUpload in iOS 4 or 5

2012-07-02 Thread Glenn L. Austin
On Jul 2, 2012, at 7:59 AM, Vavelin Kevin wrote: > Hi there, > > I have a website developed in ASP.NET posted in a webview. Everything is done > except that the fileupload is grayed out and I see no way to set. I know that > in a future version of the fileupload will be allowed but is > there

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Motti Shneor
Thanks Graham (Sigh…) I was beginning to think I'm stupid or something, struggling so hard with a UI element as ordinary as a Split-View. I have the feeling I "almost got it", and I even think I understand why and when delegate methods are being called. Rolling out my own SplitView doesn't se

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Todd Heberlein
On Jul 2, 2012, at 9:46 PM, Motti Shneor wrote: > Thanks Graham (Sigh…) > > I was beginning to think I'm stupid or something, struggling so hard with a > UI element as ordinary as a Split-View. I ran into this exact same problem last week. I can't believe it is an extremely rare situation. I

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Quincey Morris
On Jul 2, 2012, at 21:46 , Motti Shneor wrote: > for god sake, why isn't there a [mySplitView setSubview:panelSubview > collapsedStateTo:YES/NO] Well, one possible answer is to ask yourself if you're asking the right questions. I think there's perhaps a small difference between the user c

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Graham Cox
On 03/07/2012, at 2:46 PM, Motti Shneor wrote: > have the feeling I "almost got it", and I even think I understand why and > when delegate methods are being called. Rolling out my own SplitView doesn't > seem to be easier than finding the answer to my question, because to inherit > from NSSp

NSTextView with ruler controls in a NSPopover

2012-07-02 Thread Graham Cox
I'm trying to put a text editor into a popover. It works, but the positioning of the text controls and rulers is very strange: http://apptree.net/images/popover.png It places them outside of the popover window, even though the textview, its scrollview and the custom view that acts as a contain

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-02 Thread Kyle Sluder
On Tue, Jul 3, 2012, at 03:22 PM, Graham Cox wrote: > True in part. But you could subclass NSView instead. After all, > NSSplitView doesn't really bring that much to the table - it relies on > inheriting NSView to store its subviews, the only thing it draws is the > actual splitter itself, which is

Re: Prevent Quarantine message on helper app

2012-07-02 Thread Trygve Inda
> On Jul 2, 2012, at 5:10 PM, Trygve Inda wrote: > >> When users open my prefpane for the first time they get the OS quarantine >> message. Then my prefpane has to open a helper app and it pauses for about >> 30 seconds and then throws up another quarantine message... This time for >> the helper.

Re: NSTextView with ruler controls in a NSPopover

2012-07-02 Thread Graham Cox
On 03/07/2012, at 3:32 PM, Graham Cox wrote: > I'm trying to put a text editor into a popover. Never mind - turns out this is a bad idea anyway. Because the text ruler controls can bring up secondary sheets for the various "Other..." menu items, it all collapses in a heap because NSPopover is