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
es change.
Thanks a lot for the explanation. From the documentation on
automaticallyRearrangesObjects that's a little difficult to derive.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing l
call
-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 t
x27;d 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 Sp
ds 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 (Coco
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 this
ly isn't very sensible.
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.app
pport
for previous SDKs have a look at
+ (BOOL)canConcurrentlyReadDocumentsOfType:(NSString *)typeName
in NSDocument
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
P
yer and its sub-layers 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@li
root layer 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
x27;m talking about, this
delegate 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
ion/Introduction.html
talks 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
--
______
ew in 10.7.4 I think,
NSView.h line 405) 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
_
ondering if there's a better way to make sure
the wrapper points to the right place once saving is complete.
Regards
Markus
--
______
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
but that has the
disadvantage of potentially overwriting a file that's already using that name
without any warning (however slim the chances of such a file existing are).
Regards
Markus
--
__
Markus Spoettl
_
, just not were I was looking.
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 moderato
On 6/10/12 7:45 PM, Markus Spoettl wrote:
Well, it suddenly started working and the reason is that apparently you need to
have
-saveToURL:ofType:forSaveOperation:completionHandler:
overwritten. If you don't you just don't get to use background writing.
Overwriting this method does
DeprecatedOn 6/10/12 7:21 PM, Markus Spoettl wrote:
Keeping the list server busy while everyone else seem to have better things to
do...
Is there an magic trick to get the framework to actually call NSDocument's
- (BOOL)canAsynchronouslyWriteToURL:(NSURL *)url ofType:(NSString *)typ
ere seems to be one as my override is
never called. Why?
Regards
Markus
--
______
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the li
his hasn't been sorted out long ago,
so naturally I'm wondering once more today, what am I doing wrong?
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
me what it is. I'm using Lion 10.7.4 and base SDK 10.7, deployment
target is 10.6.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin request
it) and can happen a couple of
times during the content animation. It's basically a layer that's dragged along
with the mouse cursor.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-
proper way of handling this? Surely
there must be something basic I'm missing again.
Thanks for any pointers!
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Plea
On 6/2/12 7:27 PM, Kyle Sluder wrote:
On Jun 2, 2012, at 9:54 AM, Markus Spoettl wrote:
I'm still not seeing how queuePriority would solve the issue. Say you have a
queue with maxConcurrentOperationCount == 1
OP expressed his desire to have a queue with maxConcurrentOperationCoun
On 6/2/12 5:55 PM, Kyle Sluder wrote:
On Jun 2, 2012, at 8:38 AM, Markus Spoettl wrote:
On 6/2/12 4:57 PM, Charles Srstka wrote:
On Jun 1, 2012, at 10:23 PM, Graham Cox wrote:
On 02/06/2012, at 1:12 PM, Kyle Sluder wrote:
Give them a higher priority. You should be able to alter the
nct settings.
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-a
root layer has -masksToBounds set to yes (which mine didn't). Easy to
fix, interesting effect, though :)
Thanks for the tip!
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.
oesn't throw an exception when used on non-layer backed views.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
osting).
I'm setting the container's alpha value, which fades both buttons, but not my
layer hosting custom view.
My only guess is that there's something I need to do in my custom view but I
have no idea what that is.
Regards
Markus
--
_________
;
NSViewAnimation *shrink = [[NSViewAnimation alloc]
initWithViewAnimations:shrinkAnimation];
NSLog(@"%@", shrinkAnimation);
[shrink setDuration:durationShrink];
[shrink setAnimationCurve:NSAnimationEaseOut];
[shrink startAnimation];
--
__
s alpha is less than 1.
Not sure what the problem is, the documentation for setAlphaValue doesn't tell
me a lot, neither does the view programming guide.
Any ideas?
Regards
Markus
--
__________
Markus Spoettl
__
case insensitive. I vaguely remember being
hit by the same thing once, though I can't remember when it was and I'm pretty
sure a system update fixed it. It must have been in the early 10.5 or 10.6 releases.
Regards
Markus
--
__
Markus
On 5/5/12 11:56 PM, Ken Thomases wrote:
On May 5, 2012, at 4:46 PM, Markus Spoettl wrote:
Markus, how did you set the locale?
I used the system preferences, setting it to de_AT, restarting Xcode after that
and redoing the test.
Regards
Markus
t;]
(NSComparisonResult) $6 = 1
(lldb) p (NSComparisonResult)[@"laßt" localizedCaseInsensitiveCompare:@"zzz"]
(NSComparisonResult) $7 = -1
(lldb)
Are you sure your debugger isn't lying to you? Maybe you have category on
NSString that doe
On 4/26/12 6:50 PM, David Duncan wrote:
On Apr 26, 2012, at 9:12 AM, Markus Spoettl wrote:
I'm posting this here because quartz-dev seems dead.
Quartz-Dev may be quiet, but it doesn't seem dead to me :).
OK, my bad, I'm subscribed but I didn't realize there is actual
? Can I avoid that? How?
Any tips greatly appreciated!
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
On 4/15/12 8:06 PM, Scott Ribe wrote:
On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote:
I have an NSDictionary that contains, well, objects. When I call -objectForKey:
I get nil for keys that are definitely in there.
The dictionary gets constructed like this:
[NSDictionary
lsewhere.
I'm using Xcode 4.3.2 on Lion 10.7.3, fully updated, this is a Mac OS X,
project compiled with Apple LLVM 3.1 debugged using LLDB. Even tried
LLVM GCC4.2 and I did a full clean and recompile, same result.
So it's me. What's wrong?
Thanks for any pointers!
Regar
On 3/26/12 7:40 PM, Kevin Perry wrote:
It overrides -[NSView hitTest:] to return self for clicks inside the draggable
region.
Fantastic, thanks a lot! Works great!
Regards
Markus
--
__
Markus Spoettl
or is over.
How does it do that?
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 mod
;t matching the executable. Last time
I checked that didn't include checking for tempered resources. Maybe
codesign and signature checking learned that trick.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev
e rearranging it's bowels.
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 c
ed.
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(at)l
s, but my test case in the video is very very trimmed down. In reality
lots of different things are drawn over each other, so that approach
doesn't work.
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev
The problem goes away when setting moveableLayer's opacity to 1.0. Then
stationaryLayer is composited the same, independent of moveableLayer's
position.
I'm on Lion 10.7.3 using the 10.7 SDK with Xcode 4.3.1.
Any ideas greatly apprecia
to
define the formatting.
Definitely not something I'd want to do. For this to work consistent
with other regular dates we'd have to do it for all locales available on
OS X, not just the locales we translate to.
Regards
Markus
--
______
ing? If so, is there
a way to extract that information? Generally the Unicode LOCALE DATA
MARKUP LANGUAGE (Unicode Technical Standard #35) guide is pretty silent
on interval formatting, so is there even a definition for it?
Regards
Markus
--
_______
n work if the user flicks on the
trackpad but has momentum scrolling turned off?
Since the snap-back - which comes after scrolling - is animated, it
actually looks alright. Not nearly as terrible as I imagined when I read
your question :)
Thanks for the tip!
Regards
Markus
--
____
hat it
really is over.
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(at)
o do cleanup altogether?
I'm hoping there is one, I'm not happy with the way its working right
now. Thanks anyway!
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.co
Hello,
I take it either (a) I'm the only one here having this problem or (b)
it is so badly explained that no one knows that I'm talking about? If
it's (b) I can try again...
Regards
Markus
On 11.03.12 20:43, Markus Spoettl wrote:
Hello,
in a custom view I'm pro
. I need to do
cleanup but I must be sure scrolling is over before doing it.
The system knows (at the time of sending the final normal -phase event)
that it's going to send additional -momentumPhase events. Is there a way
to find out?
Regards
Markus
--
_________
ghlighted
one being manipulated. Really confusing to the end user.
Regards
Markus
PS: None of your or my replies seem to make it through to the list
although both you an I cc the list. Not sure why that is.
--
__________
Markus Spoettl
__
unclear what the
relationship of coordinates between mouseMoved: and mouseDown: is.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin re
g -mouseDown:
coordinates if deemed sensible in the situation). It just complicates
things by having to remember more state than was necessary before. And
it was a surprise.
--
______
Markus Spoettl
___
Cocoa-dev mai
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(at)lists.apple.com
Help/Unsubscribe/Update your Subs
(which happens
surprisingly often, btw.).
Anyone know how the system works out the integral coordinates?
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
time - it is slow again.
Is this a known problem? If so, what is the reason?
I get this all the time when there's a file in the recently open list
that's on a slow network volume.
Regards
Markus
--
______
Mark
t actually use it.
Yes, right. I'm using layers so that's legitimate, thanks!
The issue appears to be in the Dock application then which doesn't take the
switch to discrete graphics very well if the app that just started happens to
be the reason for that switch.
Regards
Ma
On Mar 19, 2011, at 11:29 AM, Markus Spoettl wrote:
> In my document based application, when started (by clicking on the dock icon
> or otherwise), the icon's startup bounce motion interrupts near the top of
> the animation, stays there for around 0.3 - 0.5 seconds and then the ic
noticeable, though.
Any ideas what that could be caused by?
Regards
Markus
--
__________
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to t
never see it.
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-a
on.
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
Help/Unsubscribe/
ok at
> <http://www.peachpit.com/store/product.aspx?isbn=0321670418>.
If you're like me and can't wait for the mail delivery, you can also get it
much faster from Amazon as a Kindle edition.
Regards
Markus
--
__
Markus Spoettl
ous versions of that header, the -init method declaration was not
> commented out.
This sounds right. Calling -init deprecated is most certainly a documentation
bug in this case. Thanks for clearing this one up for me!
Regards
Markus
--
__
Markus
ralLanguage;
@end
#endif
Which to me tries to convey that -initWithDateFormat: is deprecated -- not by
saying so directly of course.
So who is wrong, docs or header? And why doesn't the -initWithDateFormat:
initializer work?
Puzzled
Markus
--
__
Markus
uld loose a lot of UI goodies that way and thus its not
really an option.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mode
be if I had control over the context-highlight and could manually
force rows to go into this state but as it is, it's undesirable for my
particular usage.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa
st like to show
the "normal" row highlight background -- which I customize by overriding
-highlightSelectionInClipRect: in my own NSOutlineView subclass.
Thanks!
Markus
--
__________
Markus Spoettl
___
Cocoa-dev
On Jan 24, 2011, at 12:38 PM, Markus Spoettl wrote:
> Am I dreaming this example project up?
For the record: It appears so. However, there's a topic in the NSScrollView
programming guide that talks in detail about synchronizing two scroll views:
http://developer.apple.com/lib
e 10.6 SDK.
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
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(at)lists.apple.com
Help/Unsubscribe/Update yo
tsideOfEventStream];
> NSPoint localPoint = [view convertPoint:windowPoint fromView:nil];
> if (![view mouse:localPoint inRect:[view visibleRect]]) {
> [[NSCursor disappearingItemCursor] set];
> }
Fantastic, thanks so much Corbin!
Regards
Markus
--
___
work) if I can avoid it because I fear there are countless
little traps to hit on the way.
Is there a way not to get the cursor reset by AppKit behind my back?
Regards
Markus
--
______
Markus Spoettl
___
Coco
t will automatically
trigger document change flags for you. If you have methods for adding/removing
an objects from the array, you could add undo/redo actions there.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-
On Dec 1, 2010, at 6:14 PM, jonat...@mugginsoft.com wrote:
> On 1 Dec 2010, at 17:08, Markus Spoettl wrote:
>
>> Hello,
>>
>> I have an application for which I need to create a second version that's
>> basically the same but doesn't use a Framework
e if that situation is handled gracefully in Leopard (I assume it
is).
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator co
r uses a version different than
the one you're currently working on to get its icons?
Regards
Markus
--
______
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
resents?
Just guessing here 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
--
_______
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(val
or any insight.
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(at)lists.apple.com
Help/Unsubscribe
rKeyPath: messages
for those objects observing the property (via -addObserver:).
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
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
>>
ush a lot, I think I got the idea
from 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-de
in a state they expect
it in. See
<http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSGraphicsContext_Class/Reference/Reference.html#//apple_ref/doc/uid/20000336-BAJBDIBC>
Regards
Markus
--
__
Markus Spoettl
_
quot; doesn't bring up anything (useful)
- 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
___
Coc
ther.
If the heading was "Special Considerations prior Mac OS X 10.5" it would be
crystal clear even to me.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
ed objects. This method should be used for binding, no
assumption should be made about what methods this object supports.
-
I feel a little stupid as it's obviously referring to prior 10.5, although the
language could be clearer.
Thanks all for your help!
Regards
Markus
--
___
ndex paths would no
longer be the same.
--
__________
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 mod
ode (but that doesn't
change the problem at hand).
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-ad
ke
> the window 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 lis
or controller (or maybe a category on the original class).
As I said I'm happy 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
_
ust
maintain MVC you could create a proxy object 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
--
______
r to something more sensible so I can keep my
transparent table.
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator com
is
problem? Do I need 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
--
_______
gFiles.html#//apple_ref/doc/uid/20001288-CEGJFDFG>
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-admin
look through all my reference books and searched 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
___
d still be valid, and that's what's important. No?
There are probably good reasons why the node removal isn't undoable and the
problem is legitimate, I just can't think of one right now.
Regards
Markus
--
__
Markus Spoettl
_
Foundation/Protocols/NSKeyValueObserving_Protocol/DeprecationAppendix/AppendixADeprecatedAPI.html>
Regards
Markus
--
__
Markus Spoettl
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
for the detailed explanation. Something else must be playing into
this because my delegate 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 cra
201 - 300 of 506 matches
Mail list logo