On 25.06.2021 at 18:54 Carl Hoefs wrote:
> So I think it's safe to say that something has changed, and you're not
> fighting fantoms...
Do you think this should be reported to Apple or will nobody care because I'm
using deprecated APIs?
--
Best regards,
Andreas Falkenhahn
I'm manually calculating the minimum size of my NSTableColumn to avoid text
ellipsization. The calculation looks like this:
NSCell *cell = [m_view preparedCellAtColumn:m_column row:row];
int width = ceil([cell cellSize].width);
if(m_column == [m_view outlineTableColumn]) {
width
So just for the record, thanks to a hint from Stack Overflow I was able to
solve the problem by just using ceil() on the size I get from [cell cellSize].
Maybe just passing [cell cellSize].width as a CGFloat to
NSTableColumn::setWidth() would also do the job but I haven't tested this
because my
On 11.11.2020 at 16:51 Steven Mills via Cocoa-dev wrote:
> You also need to learn how view coordinates work. A view's bounds
> will almost always have an origin of 0,0.
Yeah, but size.width is 0 too so something must be wrong in that code...
> What you want is the
> view's frame, which is the r
> Yes, just add a fudge factor to ensure the column will be wide
> enough to accommodate the string width AND the spacing between the
> left and right edges of the actual NSTextField in the cell. You can
> inspect the field in the table to see those distances.
Ok, but how can I get those distances
I have a simple one-column NSTableView full of text. When I add very long lines
to it, the text that doesn't fit into the column gets cut off and replaced by
"...". I don't want that. Instead, I want to have a horizontal scrollbar that
allows the user to view the complete list entry.
Sounds sim
ouldn’t be too hard to roll your own simply based on milliseconds of a
>>> timer.
>>> Even a simple
>> if (myMilliseconds >> nextUpdateTime) {
>>>[updateObject doThatUpdate];
>>> nextUpdateTime = myMilliseconds + msThrottle;
>>> }
n the monitor's refresh
frequency rate that calls -setNeedsDisplay in intervals of the monitor's
vertical refresh rate or how is that supposed to be implemented?
On 19.10.2020 at 01:22 David Duncan wrote:
> On Oct 18, 2020, at 2:37 AM, Andreas Falkenhahn via Cocoa-dev
> wrote:
; Cheers,
> Alex Zavatone
>> On Oct 15, 2020, at 2:13 PM, Andreas Falkenhahn via Cocoa-dev
>> wrote:
>> I'm drawing inside an NSView by simply setting its layer's contents to a
>> CGImage which is updated for every frame, e.g. something like this:
>>
s not more often than necessary. I need to see if CADisplayLink
can do that...
On 16.10.2020 at 00:48 Graham Cox wrote:
> Appkit already throttles view refreshes to 60fps. There’s nothing you need to
> do.
> —Graham
>> On 16 Oct 2020, at 6:13 am, Andreas Falkenhahn via
I didn't know about that. That's why I was asking the question :) I guess your
answer is what I was looking for originally but since simply overriding
"layout" does the job as well I'll just leave it like it is.
On 17.10.2020 at 23:57 Richard Charles wrote:
> So why not just do this.
> [myVie
re still using auto layout. The frame
> changes get converted to auto layout constraints under the hood. If
> you said “without using Autolayout API” that would be more correct.
> —Rob
>> On Oct 17, 2020, at 9:46 AM, Andreas Falkenhahn via Cocoa-dev
>> wrote:
>> Thanks
o possible
>> without using any Auto Layout features whatsoever...
>> On 17.10.2020 at 16:30 Richard Charles wrote:
>>> You could call this method on your three views.
>>> -[NSViewView setAutoresizingMask:]
>>> --Richard Charles
>>>> On Oct 17,
ever...
On 17.10.2020 at 16:30 Richard Charles wrote:
> You could call this method on your three views.
> -[NSViewView setAutoresizingMask:]
> --Richard Charles
>> On Oct 17, 2020, at 6:57 AM, Andreas Falkenhahn via Cocoa-dev
>> wrote:
>> Hi,
>> I have an
Hi,
I have an NSView that I set as the content view of my NSWindow. The NSView has
three subviews. Where should I reposition and resize those three subviews when
the NSWindow size changes?
I see that NSView has a "layout" method that can be overridden but AFAIU this
is only to be used for Aut
I'm drawing inside an NSView by simply setting its layer's contents to a
CGImage which is updated for every frame, e.g. something like this:
dp = CGDataProviderCreateWithData(NULL, frameBuf, frameBufSize, NULL);
im = CGImageCreate(frameWidth, frameHeight, 8, 32, frameStride,
theC
On 11.12.2019 at 00:57 Turtle Creek Software via Cocoa-dev wrote:
> wxWidgets is still Carbon, with an incomplete Cocoa fork.
No, wxWidgets has a very stable, complete and usable Cocoa backend and it's not
nearly as bloated as Qt.
--
Best regards,
Andreas Falkenhahn
17 matches
Mail list logo