There is a library I'm using that is reading a list of files every 0.5
seconds and watching for the last-modified attribute to change.
Is this less efficient than using FSEvents? If so, how? For example, will
it weak down the HDD or SSD faster? Run the battery of my laptop out
sooner? Some other w
An educated guess would be that polling should be less efficient as the event
based FSEvents.
Any reason you do not want to tap into the FSEvents API?
You concerns about weakening is nothing I would consider, as you're talking
about reading, which should be considered harmless (in the physical s
Let me give a little more context. The app is a Clojure
test-auto-runner[1], that spins up the JVM and watches files to reload
and re-run the tests for[2].
I'm concerned that running this auto-runner on my laptop is killing
the SSD and battery quicker. Especially because these rMBPs don't have
eas
I'm having some problems to resize and show all text in a UITableViewCell based
on the contents. It has two labels, the second of which can have a variable
length and I'd like to show it all.
So I added this code:
- (CGFloat)tableView:(UITableView *)tableView
heightForRowAtIndexPath:(NSIndexPa
Are you recalculating the size of the label as well? Using the same logic?
I worked on the very same thing yesterday and that got it to work.
In my case the label's content can be very large, with string length up to
12 characters and I found out that a label's recalculated size doesn't work
On Apr 28, 2013, at 3:28 PM, Ten Horses | Diederik Meijer
wrote:
> Are you recalculating the size of the label as well? Using the same logic?
Good call, that's the solution.
Thanks,
- Koen.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Fri, Apr 12, 2013, at 10:58 PM, Martin Hewitson wrote:
> Dear list members,
>
> I have an NSTextField in a row view of a view-based tableview and I see
> the following behavior:
>
> 1) to get the field editor to show I have to single click the text field
> and wait about 1s.
Do you have a
What's your proxy for NSTimer? I'm interesting in it.
On 13-4-25 16:34, Oleg Krupnov wrote:
Tom, I disagree, because unlike other objects with strong refs, or say
@property(retain), the strong refs in blocks are created implicitly
and it's just too easy to let them slip out of attention. There is
What I’m trying to do is have an NSTextView and add custom NSView subviews to
it, but have it so the text can layout around the subviews.
Right now, I can easily add a subview to the textview but of course, that goes
into the textview and the text is ignorant of the subviews, so it just runs
ov
On 27 Apr, 2013, at 08:04 , Antonio Nunes wrote:
> On 25 Apr, 2013, at 18:21 , Antonio Nunes wrote:
>
>>> I have an NSSearchField, and a menu bar submenu with the standard Find
>>> items. When the search field receives some input, it performs its action
>>> and an array controller is filled w
Hi,
I am developing an application tool that requires a function which will
give me users default browser name.
I have code as below
FSRef appRef;
CFURLRef inUrl;
OSStatus status;
CFStringRef urlString;
CFURLRef appUrlRef;
CFStringRef defBrowserName;
Hi guys,
I've an NSView hierarchy with:
- an NSWindow with inside an NSView (called BaseContainerView)
(yellow color)
- inside BaseContainerView another NSView called HostView
(centered) (orange color)
- inside HostView.layer a CALayer called subLay
12 matches
Mail list logo