use a borderless window, init w/ zero height, and animate the show for
requisite frame height.
> On Mar 25, 2015, at 6:06 PM, Dave wrote:
>
> Hi All,
>
> I’d like to be able to display and Model Alert Sheet at an arbitrary screen
> location, is this possible?
>
> If not, if I created a borde
derive your own custom class from NSView & render how you like in -
(void)drawRect:(NSRect)dirtyRect
> On Mar 8, 2015, at 3:02 PM, Patrick J. Collins
> wrote:
>
> I am trying to create a "playhead" that will move across a waveform, and
> IB shows a "Vertical line" component which looks exactly
mentioning it.
> On Mar 2, 2015, at 5:54 PM, edward taffel wrote:
>
>
>> On Mar 2, 2015, at 5:34 PM, Ken Thomases wrote:
>>
>> On Mar 2, 2015, at 3:51 PM, edward taffel wrote:
>>
>>> has anyone had success in changing NSTextField’s default highlight? e.g.,
> On Mar 2, 2015, at 5:34 PM, Ken Thomases wrote:
>
> On Mar 2, 2015, at 3:51 PM, edward taffel wrote:
>
>> has anyone had success in changing NSTextField’s default highlight? e.g.,
>> given bright text on a dark background, the default highlight is not
>
has anyone had success in changing NSTextField’s default highlight? e.g., given
bright text on a dark background, the default highlight is not serviceable. i
had hoped subclassing NSTextFieldCell & overriding
-(id)_highlightColorForCell:(NSCell*)cell would work, as it does in instances
of NSTex
i meant acceptsFirstMouse.
> On Nov 4, 2014, at 10:17 AM, edward taffel wrote:
>
> have you tried returning NO for acceptsFirstResponder on the NSImageView?
>
>
>> On Nov 4, 2014, at 10:04 AM, Torsten Curdt > <mailto:tcu...@vafer.org>> wrote:
have you tried returning NO for acceptsFirstResponder on the NSImageView?
> On Nov 4, 2014, at 10:04 AM, Torsten Curdt wrote:
>
> I have a NSWindow that has movableByWindowBackground set. Now I want to add
> a NSImageView but have the window be draggable also at the area covered by
> the view.
> On Oct 30, 2014, at 3:19 PM, Quincey Morris
> wrote:
>
> On Oct 30, 2014, at 11:19 , edward taffel <mailto:etaf...@me.com>> wrote:
>>
>> i agree! do you feel it should always track? [anyone else?]
>
> There’s an argument that says it should change
> On Oct 30, 2014, at 1:42 PM, Keary Suska wrote:
>
> A tracking area can choose when to track, and it appears that NSSplitView has
> chosen to track only when the window is key. You may be able to access the
> tracking area via the -trackingAreas method and swap it out with one of your
> own
> On Oct 30, 2014, at 12:34 PM, Seth Willits wrote:
>
>> in a panel, the tracking area for NSSplitView’s divider is only active if
>> the panel is key, i.e. the cursor is not affected otherwise. as a panel is
>> not generally key unless needed, ought not this area be always active?
>> anyone
in a panel, the tracking area for NSSplitView’s divider is only active if the
panel is key, i.e. the cursor is not affected otherwise. as a panel is not
generally key unless needed, ought not this area be always active? anyone
agree? anyone have a workaround?
thanks,
edward
t” method
> since before autolayout even existed, and I know from experience it doesn’t
> grok autolayout.
>
> You can ignore it.
>
> On Oct 27, 2014, at 11:56 AM, edward taffel <mailto:etaf...@me.com>> wrote:
>
>> just updated my dev machine to yosemite. closing
just updated my dev machine to yosemite. closing a document window (command-W)
from within my app, causes the following log:
[NSSavePanelAlertStyleContentView layout]. NSSavePanelAlertStyleContentView or
one of its superclasses may have overridden -layout without calling super. Or,
something m
your client must be very aesthetically oriented to have had a custom font
created; they would more likely be happier having a compressed cut made, as
well: algebraic adjustment is just distortion. however, if you would like to
control compression/expansion algebraically, you may wish to investig
just out of curiosity—have you attempted this earlier, e.g. in NSApplication
init?
regards,
edward
On Sep 19, 2014, at 12:12 PM, Mills, Steve wrote:
> Our app init (called from applicationWillFinishLaunching) needs to put up
> some modal dialogs. When one of these modals is dismissed, NSAppli
you may wish to investigate the quartz blend modes, e.g. kCGBlendModeDifference
might work for you.
On Sep 1, 2014, at 3:53 PM, Luc Van Bogaert wrote:
> Hello,
>
> I'm trying to find a way to draw a grid (NSBezierPath 'lines') in a custom
> nsview so that it is always visible, regardless of
On Aug 27, 2014, at 12:32 PM, Kyle Sluder wrote:
worse & worse: very clever, kyle—thanks for pointing this out!
>> i had this problem too: you can show the alert on the main thread via e.g.
>> performSelectorOnMainThread. (as was kindly pointed out to me by, if i
>> remember correctly, graha
On Aug 27, 2014, at 11:30 AM, Matthew LeRoy wrote:
> This seems to work in initial testing — the alert displays — but I get a
> message in the console telling me that “NSAlert is being used from a
> background thread, which is not safe. This is probably going to crash
> sometimes. …” Presumabl
a cocoa solution may yet be forthcoming, but—if you enjoy pdf, qua pdf, i
should investigate CGPDFContextCreate.
regards,
edaward
On Aug 16, 2014, at 6:18 AM, Jean Suisse wrote:
> Dear All,
>
> I have a goods management cocoa application which needs to generate pdf
> documents. It isn’t a d
On Jul 24, 2014, at 2:45 PM, Sean McBride wrote:
> On Thu, 24 Jul 2014 14:05:17 -0400, Alex Zavatone said:
>
>> If I change
>>
>> case NSStreamEventEndEncountered:
>>
>> to
>>
>> case 4:
>>
>> the event is caught.
>>
>> Since NSStreamEventEndEncountered is supposed to = 1UL << 4 in t
On Jul 24, 2014, at 10:30 AM, Cody Garvin wrote:
>
>>
>> ah, well, i had a similar problem, but the opposite. have you tried doing
>> the set in mouseEntered?
>>
>
> I have not tried mouseEntered yet. If I go that route, should I dispose of
> cursorUpdate?
>
> - Cody
of course, you’ll ne
On Jul 24, 2014, at 10:18 AM, Cody Garvin wrote:
>>
>> is it set (enter), reset (exit), or both that sometimes do not work as
>> intended?
>>
>
> Setting it, resetting seems to always work.
ah, well, i had a similar problem, but the opposite. have you tried doing the
set in mouseEntered?
On Jul 24, 2014, at 9:37 AM, Cody Garvin wrote:
> Tried to send this yesterday with code, but I guess it was too big.
>
> This is on Xcode 6 Beta 4 / OS X 10.10. The app is built for 10.10, so
> perhaps a bug.
>
> I’m getting some randomness with updating the cursor. Sometimes works as
> int
On Jul 21, 2014, at 11:37 AM, Dragan Milić wrote:
> Does anyone know what could be causing this problem in such a way that it
> doesn't happen to all, but only to some people? Is it possible to get the
> graphics context completely screwed so that those messages start popping-up?
are your use
On Jul 17, 2014, at 9:57 PM, Graham Cox wrote:
>>
>> (have you actually gotten similar to work?)
>
> Yes, the scheme I've outlined is exactly how it works in my own app. I would
> share the code with you, but it's not my IP to give away unfortunately.
ofc: an erstwhile colleague used to say:
On Jul 17, 2014, at 6:35 AM, Graham Cox wrote:
>
> On 17 Jul 2014, at 4:01 am, edward taffel wrote:
>
>> some of you may recall a previous thread of mine: ‘showing load progress for
>> autosaved documents’; this is a recast version.
>>
>> from wha
some of you may recall a previous thread of mine: ‘showing load progress for
autosaved documents’; this is a recast version.
from what i can discern, in the base case, application windows do not show
until autosaved documents have loaded, which makes it difficult to show load
progress on these.
you may wish to look up ‘Delta E’. [what has this to do w/ cocoa?]
On Jun 17, 2014, at 9:29 AM, Maxthon Chan wrote:
> Alternatively I have an idea based on HSB colours: difference in hue in
> radians raised to 4th power (or 6th) plus squared Euclidean distance of
> saturation and brightness.
On May 22, 2014, at 12:24 PM, Jens Alfke wrote:
>
> On May 22, 2014, at 8:54 AM, edward taffel wrote:
>
>> i find no mention of thread safety in the NSOpenPanel doc, but the doc
>> mentions ‘Open panels are drawn in a separate process by the powerbox’:
>>
On May 22, 2014, at 11:41 AM, Jens Alfke wrote:
>
> On May 22, 2014, at 8:29 AM, edward taffel wrote:
>
>> this i have remedied. however, given the scenario where a url has vanished,
>> i first show an NSAlert & then an NSOpenPanel to offer relink. NSOpenPanel
>
opening an NSAlert while scanning an autosaved document now engenders the
following log item:
NSAlert is being used from a background thread, which is not safe. This is
probably going to crash sometimes. Break on void
_NSAlertWarnUnsafeBackgroundThreadUsage() to debug. This will be logged onl
On May 20, 2014, at 8:06 PM, Lee Ann Rucker wrote:
>
> On May 20, 2014, at 4:45 PM, edward taffel wrote:
>
>>
>> On May 20, 2014, at 5:18 PM, Keary Suska wrote:
>>
>>> On May 20, 2014, at 9:55 AM, edward taffel wrote:
>>>
>>>> ap
On May 20, 2014, at 5:18 PM, Keary Suska wrote:
> On May 20, 2014, at 9:55 AM, edward taffel wrote:
>
>> apologies keary,
>>
>> on reread, my question is badly cast: i should have read it the same as you.
>>
>> the issue is:
>>
>>
(NSRect)frameRect
>toScreen: (NSScreen *)screen
> {
> return frameRect;
> }
>
thank you for this. i suppose it’s six-of-one as to which technique is
simpler—i’ll look into it.
> On May 20, 2014, at 8:55 AM, edward taffel wrote:
>
>> apologies keary,
>>
>>
red what class of window is intended at this level.
thanks for your response!
edward
On May 20, 2014, at 10:59 AM, edward taffel wrote:
>
> On May 20, 2014, at 10:41 AM, Keary Suska wrote:
>
>> On May 20, 2014, at 8:17 AM, edward taffel wrote:
>>
>>> does anyon
On May 20, 2014, at 10:41 AM, Keary Suska wrote:
> On May 20, 2014, at 8:17 AM, edward taffel wrote:
>
>> does anyone know where to find the definition of kCGStatusWindowLevel
>> (NSStatusWindowLevel)? or alternatively, can anyone define it?
>
> NSStatusWindowLevel i
does anyone know where to find the definition of kCGStatusWindowLevel
(NSStatusWindowLevel)? or alternatively, can anyone define it?
thanks in advance,
edward taffel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
forgot to click reply all
From: edward taffel
Subject: Re: NSScroller revision?
Date: April 28, 2014 at 11:08:23 AM EDT
To: Kyle Sluder
kyle,
i believe you are correct, but not for any release on my side.
thanks again for your insight.
& just in case anyone was following this thread
On Apr 25, 2014, at 3:32 PM, Kyle Sluder wrote:
> On Fri, Apr 25, 2014, at 12:20 PM, edward taffel wrote:
>> i just noticed & i’m not sure in which seed it occurred: NSScroller seems
>> to have undergone some revision. i now get this message:
>>
>> CoreAnimatio
i just noticed & i’m not sure in which seed it occurred: NSScroller seems to
have undergone some revision. i now get this message:
CoreAnimation: warning, deleted thread with uncommitted CATransaction; created
by:
0 QuartzCore 0x7fff96328ff6
_ZN2CA11Transaction4pu
there’s no point in doing any work if the window doesn’t show—which does not
occur.
On Apr 24, 2014, at 8:46 PM, Graham Cox wrote:
>
> On 25 Apr 2014, at 1:59 am, edward taffel wrote:
>
>> thanks graham,
>>
>> i sent performSelectorOnMainThread from readFrom
?
On Apr 24, 2014, at 12:33 PM, Sean McBride wrote:
> On Thu, 24 Apr 2014 12:12:12 -0400, edward taffel said:
>
>> i’m probably missing something, but—
>> the controls appear sufficiently displaced from the rendering: can’t you
>> decease the height of your tracking
i’m probably missing something, but—
the controls appear sufficiently displaced from the rendering: can’t you
decease the height of your tracking rect in order to inhibit mouseMoved in this
region?
On Apr 24, 2014, at 11:20 AM, Sean McBride wrote:
> On Wed, 23 Apr 2014 20:16:22 -0500, Ken Tho
self performSelectorOnMainThread:@selector(showReadHUD) withObject:nil
waitUntilDone:YES];
i assume waitUntilDone:YES is the correct thing to do here.
edward
On Apr 23, 2014, at 8:20 PM, Graham Cox wrote:
>
> On 24 Apr 2014, at 10:06 am, edward taffel wrote:
>
>> at present, i’m find
if a control changes rendering on entry, as well as the cursor, mouseEntered is
serviceable; if changing the cursor is the goal, cursorUpdate is clearer—better
practice. unfortunately, if views overlap mouseMoved is still sent to the
parent, which muddles the state directed adjustment anyway.
O
thank you for this graham!
at present, i’m finding it difficult to find a point, prior to NSDocument
initializing autosaved documents, to show a progress window. everything above
readFromURL is off the main thread & there is nothing in the application
delegate protocol that precedes—so far as i
hope you will post it.
On Apr 23, 2014, at 1:16 PM, edward taffel wrote:
> if i understand you correctly: you want to adjust the cursor in your view
> based on state, but embedded controls should set the cursor independently.
> you might try subclassing the controls in question, re
if i understand you correctly: you want to adjust the cursor in your view based
on state, but embedded controls should set the cursor independently. you might
try subclassing the controls in question, register a tracking area (for
controls that do not already have one, only) & define mouseEntere
thanks for your reply kyle.
you are absolutely correct: dts did provide a workaround w/
enumerateDraggingItemsWithOptions.
On Apr 12, 2014, at 3:51 PM, Kyle Sluder wrote:
> On Apr 12, 2014, at 11:02 AM, edward taffel wrote:
>>
>> during inter-document drags of app objec
during inter-document drags of app objects, i’d like to resize the drag image
to the mag (zoom) of an entered document.
this was easily accomplished in carbon. when i ported from carbon [in 2011] i
tried what i considered obvious, e.g.
- (NSDragOperation)draggingEntered:(id < NSDraggingInfo >)se
that’s how i should do it. particularly, if you have complicated selections
that me must be undone/redone you’ll find you have excellent control, as well.
On Apr 8, 2014, at 7:46 PM, Rick Mann wrote:
>
> On Apr 8, 2014, at 16:41 , edward taffel wrote:
>
>> moving history
using NSDocument w/ autosaves is a great way to go—lots of bang for your buck!
xml could open possibilities in terms of web potential.
moving history into your model will better facilitate portability [in case
you’re thinking in this direction].
all good things for a cad app.
On Apr 8, 2014, at
i have a number of custom buttons in my app, all derived from NSButton. some do
some simple animation (no Core Animation) which i handle in drawRect determined
by state. i connect actions in ib, as usual, but with one difference: i handle
mouseDown where i change state (open/closed, on/off, etc.
quartz is color managed—all rasters are tagged: when you import an untagged
jpeg, srgb is assigned [a likely/logical candidate to characterize an untagged
jpeg]. if your app is color managed [is it?] you should present similar options
to what you see when you reopen the file in photoshop [allow
54 matches
Mail list logo