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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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,
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
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
__
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
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
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
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
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
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
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
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
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
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
> 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.
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
80 matches
Mail list logo