CALayer contentScale initialization, where to do it?

2012-06-16 Thread Markus Spoettl
) seems to indicate the existence of a property or method named initialContentsScale, though I can't find any mention anywhere else. Any ideas? Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa

Re: CALayer contentScale initialization, where to do it?

2012-06-16 Thread Markus Spoettl
a little about layers but is rather unclear on how and when to initalize a layer contentScale properly. I don't recall reading about avoiding backingScaleFactor, though. Regards Markus -- __ Markus Spoettl

Re: CALayer contentScale initialization, where to do it?

2012-06-16 Thread Markus Spoettl
helps when contentsScale changes. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: CALayer contentScale initialization, where to do it?

2012-06-17 Thread Markus Spoettl
contentsScale? Regards Markus -- __ Markus Spoettl ___ 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

Re: CALayer contentScale initialization, where to do it? (SOLVED)

2012-06-17 Thread Markus Spoettl
is set by the framework automatically during view initialization/nib loading. So problem solved, thanks guys! Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Markus Spoettl
. That doesn't seem to be possible using bindings, I'm wondering how others solve this? Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Markus Spoettl
On 7/17/12 9:35 AM, Quincey Morris wrote: On Jul 16, 2012, at 23:34 , Markus Spoettl wrote: What is more problematic is that if an edit field which displays the placeholder looses first responder, the model values are set to nil. There are 2 bindings options that should let you control

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Markus Spoettl
to -control:textDidChange:. Unless the delegate receives that message, the text field has not been edited by the user. Thanks guys for the input! Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev

NSArrayController not rearranging correctly

2012-07-17 Thread Markus Spoettl
really like to avoid that. Any ideas on how to force NSArrayController to (1) either produce a correct result automatically or (2) prevent to do any rearranging by itself when a filterPredicate is set? Regards Markus -- __ Markus Spoettl

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
-setFilterPredicate: and nothing suspicious happens. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
for the explanation. From the documentation on automaticallyRearrangesObjects that's a little difficult to derive. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSArrayController not rearranging correctly

2012-07-18 Thread Markus Spoettl
On 7/17/12 11:41 PM, Markus Spoettl wrote: I have an NSArrayController (automaticallyRearrangesObjects = YES) on which I set a filterPredicate in code (not through bindings). Most of the time, rearranging works but in one 100% reproducible case, the controller produces an empty

Re: NSArrayController not rearranging correctly

2012-07-19 Thread Markus Spoettl
to insert an intermediate object between table view and NSArrayController? Makes the whole binding idea rather useless, or am I missing something? Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa

Re: NSArrayController not rearranging correctly

2012-07-19 Thread Markus Spoettl
encapsulation, but it's justifiable because it makes solving the issue so simple. If only that NSArrayController bug didn't exist… Thanks Quincey for the elaborate responses and for confirming the bug. Regards Markus-- __ Markus Spoettl

Re: setting selection in PDFView

2012-07-20 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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

NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-23 Thread Markus Spoettl
state or even worse be undoable. Plus I do want the preferences to be stored in the package, not someplace else (restoration state for example). Thanks for any pointers! Regards Markus -- __ Markus Spoettl

Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-23 Thread Markus Spoettl
::: in that case. That could break in the future, though. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-23 Thread Markus Spoettl
? Regards Markus -- __ Markus Spoettl ___ 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

Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-23 Thread Markus Spoettl
that. Not using autosavesInPlace right now, but if it's the ticket to making this work, it may be worth reconsidering. I'm not a big fan of the feature, though. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing

Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-23 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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

Re: NSDocument -canCloseDocumentWithDelegate::: not called when terminating

2012-07-24 Thread Markus Spoettl
On 7/23/12 6:27 PM, Markus Spoettl wrote: On 7/23/12 5:42 PM, Fritz Anderson wrote: Perhaps I'm missing something — is writing the preferences file very time-consuming? If not, why not write it whether you need to or not? Or whenever a preferences value changes, which is what you'd do

Why is NSDocument reverting so rudimentary?

2012-07-24 Thread Markus Spoettl
:: or -readFromFileWrapper::: and -fileWrapperOfType:: methods and leave the actual file OS interaction to NSDocument. I basically don't have to care where it comes from or where it goes to. Wonderful! Am I overlooking something? Regards Markus -- __ Markus Spoettl

Re: Why is NSDocument reverting so rudimentary?

2012-07-24 Thread Markus Spoettl
, and not intended to be called directly. The save, init, and revert methods are the higher level API designed for calling directly. On 24 Jul 2012, at 19:13, Markus Spoettl ms_li...@shiftoption.com wrote: Hello, more out of curiosity, I wonder why document reverting does not provide the same level

-mouseDragged: sent to view when dragging window

2012-07-24 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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: -mouseDragged: sent to view when dragging window

2012-07-25 Thread Markus Spoettl
the cursor is dragged during this process, don't get a single -mouseDragged: message. I don't believe that getting -mouseDragged: without a prior -mouseDown: or following -mouseUp: is intentional. Regards Markus -- __ Markus Spoettl

Re: Debugging -setNeedsDisplayInRect:

2012-07-27 Thread Markus Spoettl
() call? Regards Markus -- __ Markus Spoettl ___ 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

Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
, not the null placeholder. Why? When I bind the field to the object directly (not via controller), I get the null placeholder. Are the controllers not capable of doing this? Regards Markus -- __ Markus Spoettl

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
no selection... No, the controller does have a valid selection and other fields bound to other keypaths of the same controller/selection (in other words same object, because it's a single-object selection) do show values. Regards Markus -- __ Markus Spoettl

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder

2012-07-30 Thread Markus Spoettl
also tried custom, binding-defined placeholders, it is still showing the wrong placeholder. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-09 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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 Subscription: https

Re: NSTableView not setting -clickedRow, -clickedColumn as it should

2012-08-09 Thread Markus Spoettl
On 8/9/12 8:14 AM, Markus Spoettl wrote: On 8/9/12 12:58 AM, Graham Cox wrote: NSCell apparently uses NSCopyObject() to make a copy of itself, and NSTableView copies cells at times, e.g. for hit testing. If you have a custom cell subclass that supports copying, DO NOT use [super copyWithZone

Exception on ^⌘D when AppKit tries to use Lookup on my custom view

2012-08-09 Thread Markus Spoettl
0x7fff90819244 in NSApplicationMain () #18 0x0001a9d2 in main at /Users/markus/Projects/app/src/main.m:20 #19 0x00011764 in start () -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev

Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view

2012-08-09 Thread Markus Spoettl
it? Regards Markus On 8/9/12 3:25 PM, Markus Spoettl wrote: I have custom views that can become first responder. If one of them is and I press CTRL-COMMAND-D, my App silently throws an exception, no log is generated (call stack below). I have a main menu item that uses the same key equivalent (CTRL

Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view

2012-08-09 Thread Markus Spoettl
just a lot of code duplication involved. - Original Message - From: Markus Spoettl ms_li...@shiftoption.com To: cocoa-dev@lists.apple.com Sent: Thursday, August 9, 2012 9:16:57 AM Subject: Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view It doesn't seem like

Re: Displaying a sheet immediately after a window is opened

2012-08-17 Thread Markus Spoettl
:) withObject:nil afterDelay:0.5]; } Works well for me, both on Lion and Mountain Lion. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

NSDocument package saving invalidates wrapper? Options?

2012-08-23 Thread Markus Spoettl
I have an NSDocument based app that has uses packages do to store a complex structure. When I open a document, I keep the wrapper around handed to the document in -readFromFileWrapper:ofType:error: in order to lazy-load parts of the package when my app needs them. Similarly, I keep the

Re: CALayer show/hide question when moving to full screen.

2012-08-28 Thread Markus Spoettl
) showTextHighlight:(NSNotification *)notification - (void)removeTextHighlight:(NSNotification *)notification Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: NSDocument package saving invalidates wrapper? Options?

2012-09-02 Thread Markus Spoettl
*dataWrapper = [appData documentFileWrapper]; [self unblockUserInteraction]; return dataWrapper; } -documentFileWrapper basically prepares the wrappers (updates, replaces or removes sub-wrappers as necessary). Regards Markus -- __ Markus Spoettl

Re: NSDocument package saving invalidates wrapper? Options?

2012-09-02 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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 Subscription: https

Re: NSDocument package saving invalidates wrapper? Options?

2012-09-02 Thread Markus Spoettl
/Conceptual/DocBasedAppProgrammingGuideForOSX/AdvancedTopics/AdvancedTopics.html#//apple_ref/doc/uid/TP40011179-CH7-SW10 Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: autosavesInPlace and sandbox

2012-09-07 Thread Markus Spoettl
knowledgeable people here (like yourself and Kyle) seem to indicate that there soon will be no way to opt out of it (at an API level) is highly frightening. Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa

Strange crash while loading nib

2012-09-09 Thread Markus Spoettl
:] + 5761 33 -[NSApplication run] + 636 34 NSApplicationMain + 869 35 start + 52 -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Strange crash while loading nib

2012-09-09 Thread Markus Spoettl
On 9/9/12 8:41 AM, Graham Cox wrote: On 09/09/2012, at 4:25 PM, Markus Spoettl ms_li...@shiftoption.com mailto:ms_li...@shiftoption.com wrote: 4 -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] 5 -[NSArrayController initWithCoder:] This suggests

Re: Using NSTextField value without changing focus?

2012-09-11 Thread Markus Spoettl
probably want Continuous in the Control section. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

NSNumberFormatter + nil values

2012-09-14 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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

NSDocument -close called multiple times?

2012-09-19 Thread Markus Spoettl
in main at /Users/markus/Projects/MyApp/src/main.m:22 #36 0x000121c4 in start () -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSDocument -close called multiple times?

2012-09-20 Thread Markus Spoettl
:06 PM, Markus Spoettl ms_li...@shiftoption.com wrote: Why does AppKit call into NSDocument's -close multiple times by indirect recursion? Can this be on purpose? It happens when I have this: 1) A document with unsaved with changes 2) Terminate the app via CMD-Q 3) Answer Don't Save in the save

Re: NSDocument -close called multiple times?

2012-09-21 Thread Markus Spoettl
is to first verify [self isClosed] == NO before calling super and doing your own work. [kevin perry]; On Sep 19, 2012, at 1:06 PM, Markus Spoettl ms_li...@shiftoption.com wrote: Why does AppKit call into NSDocument's -close multiple times by indirect recursion? Can this be on purpose

Re: Autosave in place - common use case that makes me hate it

2012-09-21 Thread Markus Spoettl
On 9/21/12 8:12 AM, Kyle Sluder wrote: Now that Apple has added prompt-to-revert support for autosaved documents, This makes my brain hurt... Yes, I hate it too. Markus -- __ Markus Spoettl ___ Cocoa-dev

Re: NSDocument -close called multiple times?

2012-09-21 Thread Markus Spoettl
, you'll probably want to keep your own flag. -KP On Sep 20, 2012, at 11:41 PM, Markus Spoettl ms_li...@shiftoption.com wrote: Just to clarify: -isClosed is not something that is available on NSDocument or NSWindowController, did you mean to say that I'll have to keep a flag myself? Regards Markus

Re: splitting CJK text into words

2012-09-27 Thread Markus Spoettl
://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Crash when loading NSViewController view with NSArrayController

2012-09-29 Thread Markus Spoettl
0x7fff8b82e0c6 in -[NSApplication run] () #28 0x7fff8baaa244 in NSApplicationMain () #29 0x0001b2d2 in main at /Users/markus/Projects/rubiTrack/src/main.m:22 #30 0x00011f54 in start () -- __ Markus Spoettl

Re: Crash when loading NSViewController view with NSArrayController [solved]

2012-09-30 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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 Subscription

Re: Parsing XML Files Consisting of a Sequence of Top Level Elements

2012-10-21 Thread Markus Spoettl
of NSXMLElements it would be fine. If you find one, I'd be interested to hear about it. I had the same problem and solved it the same way. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev

Re: Determining which control has focus

2012-10-25 Thread Markus Spoettl
Markus -- __ Markus Spoettl ___ 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

Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??

2010-04-20 Thread Markus Spoettl
10.5, see docs for more information: http://developer.apple.com/Mac/library/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueObserving_Protocol/DeprecationAppendix/AppendixADeprecatedAPI.html Regards Markus -- __ Markus Spoettl

Re: Design for cleaning up Undo for a tree of objects

2010-04-27 Thread Markus Spoettl
is legitimate, I just can't think of one right now. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Seeking a graceful way to end a program

2010-04-29 Thread Markus Spoettl
the internet for sample code but have come up empty handed. Thanks for your assistance. [NSApplication sharedApplication] terminate:nil]; should work, no? Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list

Re: newbe view question

2010-05-16 Thread Markus Spoettl
/DragandDrop.html#//apple_ref/doc/uid/1069i File dragging got its own chapter: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html#//apple_ref/doc/uid/20001288-CEGJFDFG Regards Markus -- __ Markus Spoettl

NSTextFieldCell + Transparent NSTableView = Black Field editor

2010-05-26 Thread Markus Spoettl
to supply my own customized field editor via -windowWillReturnFieldEditor:toObject:? I'm on Snow Leopard, my deployment target and base SDK is 10.5, using Xcode 3.2.1. Thanks for any pointers! Regards Markus -- __ Markus Spoettl

Re: NSTextFieldCell + Transparent NSTableView = Black Field editor

2010-05-26 Thread Markus Spoettl
Markus -- __ Markus Spoettl ___ 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

Re: Value Transformer with multiple Model Key Paths

2010-05-30 Thread Markus Spoettl
that replicates all your model objects' properties + the calculated properties for display. Then you fill the table with proxies instead of the original objects. Regards Markus -- __ Markus Spoettl ___ Cocoa-dev

Re: Value Transformer with multiple Model Key Paths

2010-05-30 Thread Markus Spoettl
to give up that position when there's need for it, but I feel guilty all the time :) Regards Markus (*) All kinds of exceptions apply. -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Change the background colour of a window and toolbar

2010-06-03 Thread Markus Spoettl
draggable from the bottom bar without making the window textured? I use [window setContentBorderThickness:24.0 forEdge:NSMinYEdge]; Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev

Re: Cocoa: dragging files from Finder

2010-06-05 Thread Markus Spoettl
-awakeFromNib and call -registerForDraggedTypes: there. Also note that the real designated initializer for NSViews is -initWithFrame:(NSRect)frameRect, not init as in your code (but that doesn't change the problem at hand). Regards Markus -- __ Markus

Re: Restoring a NSTreeController selection

2010-06-24 Thread Markus Spoettl
the language could be clearer. Thanks all for your help! Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Restoring a NSTreeController selection

2010-06-25 Thread Markus Spoettl
Mac OS X 10.5, that was my trouble. So I think the new working wouldn't have saved me either. If the heading was Special Considerations prior Mac OS X 10.5 it would be crystal clear even to me. Regards Markus -- __ Markus Spoettl

Re: Data downloading performance

2010-07-16 Thread Markus Spoettl
) - or I'm overlooking it. So what is it? As a user of the synchronous API, I'm genuinely interested in hearing what it is. Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: redraw problem

2010-07-29 Thread Markus Spoettl
/reference/ApplicationKit/Classes/NSGraphicsContext_Class/Reference/Reference.html#//apple_ref/doc/uid/2336-BAJBDIBC Regards Markus -- __ Markus Spoettl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

CALayer instant content update

2010-09-03 Thread Markus Spoettl
there. -- __ Markus Spoettl ___ 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

Re: CALayer instant content update

2010-09-03 Thread Markus Spoettl
On Sep 3, 2010, at 1:44 PM, David Duncan wrote: On Sep 3, 2010, at 10:36 AM, Markus Spoettl wrote: I have delegate-drawn layers (on the main thread) whose content I want to change without animation, I don't want to a change transition of any kind in some situations. Up until now I'm using

Re: What's the point of @properties?

2010-09-19 Thread Markus Spoettl
(via -addObserver:). Regards Markus -- __ Markus Spoettl ___ 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

My NSSwappedDouble decoding crashes on iPhone 4

2010-09-29 Thread Markus Spoettl
-- __ Markus Spoettl ___ 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 Subscription: http

Re: My NSSwappedDouble decoding crashes on iPhone 4

2010-09-29 Thread Markus Spoettl
On Sep 29, 2010, at 2:41 AM, Markus Spoettl wrote: The the Mac code is 32bit and runs on Leopard and Snow Leopard. - (void)encodeDouble:(double)value forKey:(NSString *)key withCoder:(NSCoder *)encoder { NSSwappedDouble sd = NSSwapHostDoubleToLittle(value); [encoder encodeBytes

Re: NSCollectionView file promise drag drop and selection

2010-10-01 Thread Markus Spoettl
but maybe something in your setup accidentally triggers a re-draw of the view after its item's selection status has changed and that event doesn't happen on Leopard so the view's representation remains the same. Regards Markus -- __ Markus Spoettl

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Markus Spoettl
this because after suffering a minor heart attack reading your post I thought it might be interesting for other readers as well. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature

Re: Error on third opening of preferences window

2009-12-15 Thread Markus Spoettl
. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: minimize the window

2009-12-17 Thread Markus Spoettl
/WinPanel/WinPanel.html#//apple_ref/doc/uid/1031 Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How do I bind custom view properties to an NSCollectionViewItem?

2010-01-03 Thread Markus Spoettl
and implementing -newItemForRepresentedObject: where you too can get access to the ItemView and view for the object. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature

Re: Optimizing View Drawing Code

2010-01-08 Thread Markus Spoettl
is specifying a dirty rect as small as possible and restricting the actual drawing to the area inside the rect whenever possible. May not be relevant in your case as the bottleneck seems to be somewhere else. Regards Markus -- __ Markus Spoettl

Re: (void *)contextInfo

2010-01-12 Thread Markus Spoettl
Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Indentation bug in NSOutlineView with source-list highlighting?

2010-01-29 Thread Markus Spoettl
this case. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

NSArrayController predicate filtering weirdness

2010-02-02 Thread Markus Spoettl
have a strong suspicion that this just covers up a problem somewhere else. What could be the cause of behavior like this? Any hints greatly appreciated! Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature

Re: NSArrayController predicate filtering weirdness

2010-02-02 Thread Markus Spoettl
On Feb 2, 2010, at 3:16 PM, Markus Spoettl wrote: It goes something like this: Filter using predicate A = arrangedObjects contains 4 objects (correct) Filter using predicate F = arrangedObjects contains 0 objects (incorrect) Filter using predicate B = arrangedObjects contains 2 objects

Re: NSCollectionView deselection

2010-03-01 Thread Markus Spoettl
into the setter into the setter of your NSCollectienViewItem subclass to find out. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSCollectionView deselection

2010-03-02 Thread Markus Spoettl
-- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSCollectionView deselection

2010-03-02 Thread Markus Spoettl
. You don't give any details on how everything is set up in your case. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev

Toolbar customizer crashes on Leopard when using menu delegate

2010-03-23 Thread Markus Spoettl
-- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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

Re: Toolbar customizer crashes on Leopard when using menu delegate

2010-03-24 Thread Markus Spoettl
On Mar 23, 2010, at 10:02 PM, Markus Spoettl wrote: My toolbar contains an item hosting a NSPopUpButton which has a menu. That menu contains regular items and a sub-menu which has its delegate assigned to the File's Owner because it's dynamic and needs to be rebuilt each time

Re: Toolbar customizer crashes on Leopard when using menu delegate

2010-03-25 Thread Markus Spoettl
is an NSWindowController subclass which already conforms to the NSCoding protocol. A second instance actually gets created during the customizer setup, but it's dealloc'd before the crash happens. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME

Re: Finder's sidebar background color

2008-11-15 Thread Markus Spoettl
-- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Markus Spoettl
:@Bonjour Mounter.plist]]; Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Markus Spoettl
a breakpoint in both and debug the app. When the debugger hits the breakpoints you will see exactly who called it in the call stack. You can then go a figure out if that was on purpose. Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME

Re: Arggg...overrelease in table view cell, but where?

2008-12-11 Thread Markus Spoettl
-- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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

Crash when sorting tree bound to NSOutlineView

2008-12-27 Thread Markus Spoettl
in -[NSControl mouseDown:] #43 0x9499a1a3 in -[NSWindow sendEvent:] #44 0x94966d49 in -[NSApplication sendEvent:] #45 0x948c469f in -[NSApplication run] #46 0x948918a4 in NSApplicationMain #47 0x576c in main at main.m:13 -- __ Markus

Re: Crash when sorting tree bound to NSOutlineView

2008-12-28 Thread Markus Spoettl
On Dec 27, 2008, at 11:19 AM, Markus Spoettl wrote: The crash goes away. However, I have a feeling that this may be pure coincidence. Even more so as the crash also goes way if the node inserted is not on that particular location in the tree or if another node gets inserted somewhere else

Re: Crash when sorting tree bound to NSOutlineView

2008-12-28 Thread Markus Spoettl
-outlineView:sortDescriptorsDidChange: to propagate the sort back to the model. HTH, It did! Thanks very much, sometimes is so incredibly difficult to see the most obvious things. Thanks again! Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature

Storing NSDocument data in packages/bundles

2008-12-31 Thread Markus Spoettl
NSDocument with an update-relevant- parts-of-a-package-only saving mechanism? Thanks for any pointers! Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing

Re: Storing NSDocument data in packages/bundles

2008-12-31 Thread Markus Spoettl
On Dec 31, 2008, at 12:57 AM, Kyle Sluder wrote: On Wed, Dec 31, 2008 at 3:51 AM, Markus Spoettl msappleli...@toolsfactory.com wrote: My app stores a lot of data in a document, potentially hundreds of megabytes. The problem with using single files and NSKeyedArchiver is that one has to write

Re: Storing NSDocument data in packages/bundles

2008-12-31 Thread Markus Spoettl
On Dec 31, 2008, at 1:32 AM, Kyle Sluder wrote: On Wed, Dec 31, 2008 at 4:16 AM, Markus Spoettl msappleli...@toolsfactory.com wrote: No I have not, but I have a feeling that it wouldn't be suitable. The data I store contains (when the document is big) millions of double values (amongst

<    1   2   3   4   5   >