[catching up on email]
On Thu, Sep 8, 2022, at 5:34 PM, James Walker via Cocoa-dev wrote:
> I could insert the edit
> field in a custom NSView and insert that in the split view, but I'm
> wondering if there is a better way to handle the issue?
This is how I would do it. Seems like a fine
On Jun 24, 2020, at 5:23 AM, Gabriel Zachmann via Cocoa-dev
wrote:
> I tried to add this in -viewDidLoad in MasterWindowController:
>
>[[[self view] window] makeKeyAndOrderFront: NULL];
Some questions that may or may not help:
- Are you sure the above line of code is being called? (I
On Apr 4, 2019, at 9:43 AM, Casey McDermott wrote:
>
> We have a tab view with tabs added from code. Each tab uses a NSTabViewItem
> subclass,
> which contains a reference to a NSViewController subclass within it to manage
> tab contents.
> Users click to add and remove tabs.
I see that
The compiler may accept it, but it doesn't interpret it the way you think. You
can confirm by checking whether your class formally conforms to the protocols.
Try this with your old code and your new code, and compare:
NSLog(@"conforms to protocol? %d", [ImportTool
I don't know where or whether it's documented, but it's not new.
Using Space for "clicking" whichever control has focus has been around
for a while. I don't remember offhand -- it may depend on the setting
in System Preferences that governs whether all controls can get
keyboard focus.
--Andy
On
On Aug 24, 2018, at 2:21 PM, James Walker wrote:
> What could cause a delayed perform (using -[NSObject performSelector:
> withObject: afterDelay:]) to never happen?
I'm sure you've checked, but *just in case*, I'll ask: are you sure you're not
sending it to nil?
> I wondered if I needed to
On May 3, 2017, at 11:25 AM, Gerriet M. Denkmann wrote:
> Why has test2 no prefix?
Seems like a subtle difference between the implementations of
__NSCFConstantString/__NSCFString and NSPathStore2/NSString.
I ran your code and got the same results. I also added a bunch of
On Oct 27, 2016, at 4:56 PM, Rich Siegel wrote:
> System Preferences => Accessibility => Display => "Reduce Motion"
On Oct 27, 2016, at 6:29 PM, Alex Zavatone wrote:
> Sierra, System Preferneces > Accessibility (because not wanting excess
> animation is a
Dave, can you clarify whether you want is:
1. a notification when the frontmost window changes, or
2. a notification when some application opens a new window?
If #1, observing these NSWorkspace properties looks like the way to go. If
#2, bear in mind that applications can open windows that
On Aug 24, 2016, at 4:25 PM, Jens Alfke wrote:
>
>> On Aug 24, 2016, at 1:04 PM, Andreas Falkenhahn
>> wrote:
>>
>> Now, will "setFormatter" call retain on "formatter" or not? Looking
>> at "retainCount" seems to suggest so, although I know that
On Aug 6, 2016, at 12:13 PM, Trygve Inda wrote:
>
>> On Aug 6, 2016, at 1:46 AM, Trygve Inda wrote:
>>> For example, I would need to add items with ID# 204, 765, 983, 124, and 458
>>> to the array. This seems like with Core Data it would be 5
(Apologies to those getting this twice -- I sent from the wrong account the
first time.)
On Aug 6, 2016, at 1:46 AM, Trygve Inda wrote:
> For example, I would need to add items with ID# 204, 765, 983, 124, and 458
> to the array. This seems like with Core Data it would
Don't glom the arguments together. Pass each as a separate array
element: "-i", the URL string, "-c", "copy", the output string.
And you don't need to quote the arguments, just pass them as is.
I hope that makes sense -- I'd make it more code-like if I were at my
desk rather than on my phone.
Whoops, meant for this to go to the list:
On Jun 24, 2016, at 6:22 PM, Martin Wierschin wrote:
>
>>> It almost looks like the ability to pre-select a file was deliberately
>>> removed from the NSOpenPanel API.
>
>
> Whatever the reason for removing this feature from
Interesting.
I should mention I hadn't turned on sandboxing in this project. When I turn it
on, and I set the "User Selected File" entitlement to "Read Only", I get the
same behavior as before: TextEdit.app is selected in the panel's column view,
and it's treated like a regular (non-bundle)
How do I present an NSOpenPanel with a particular file pre-selected?
I can pre-select a *directory* by setting openPanel.directoryURL. Since the
file I want to select is actually a .app bundle, which is really a directory,
you might think I'm in luck, but not quite.
Here's the code I tried:
Suggestion 1: A few weeks ago I ran into the same problem. I stumbled onto a
kludge that seems to work, which was to put some text into the text view in IB.
It can be spaces, it can be anything, as long as it's non-empty and it uses
the desired font. It seems that the bindings mechanism is
On Feb 10, 2015, at 6:15 AM, Andreas Höschler ahoe...@smartsoft.de wrote:
I also found
NSLog(@isAutomaticTextReplacementEnabled %d, [NSSpellChecker
isAutomaticTextReplacementEnabled]);
NSLog(@isAutomaticSpellingCorrectionEnabled %d, [NSSpellChecker
On Feb 10, 2015, at 11:42 AM, Andreas Höschler ahoe...@smartsoft.de wrote:
What puzzles me is that [self
respondsToSelector:@selector(setAutomaticQuoteSubstitutionEnabled:)] returns
NO!? How can this be?
It can't, assuming self is an NSTextView (or, as you seem to be using, a
subclass of
if(keepAlive) { keepAlive=nil; }
which shut up the analyzer. [keepAlive self]; like Andy suggests would
probably work just as well, though probably a tad more expensive as a method
call is involved.
Gerd
On Jul 17, 2014, at 11:23 PM, Andy Lee ag...@mac.com wrote:
On Jul 17, 2014
And of course the second I hit Send I realized the do {} idea doesn't work.
Imagine if it was some variable other than self that you might *deliberately*
use to indicate when the loop should terminate.
--Andy
--Andy
On Jul 18, 2014, at 10:07 AM, Andy Lee ag...@mac.com wrote:
You could
On Jul 17, 2014, at 11:01 PM, Jens Alfke j...@mooseyard.com wrote:
Once I’ve identified such a bug, the fix is easy: put a [[self retain]
autorelease] at the top of the method. Except now I’m using ARC, and I can’t
find a simple way of doing it. I tried adding
__unused id retainedSelf
Maybe use a subclass of NSImageView that returns nil for hitTest:? Just a
thought.
--Andy
On Wed, Jul 2, 2014, at 10:40 PM, Tim Hewett wrote:
I have an NSOutlineView with a NSImageView subview providing a background
image. Now a pop-up menu has been added to the outline view it seems the
On May 19, 2014, at 4:30 PM, Seth Willits sli...@araelium.com wrote:
Any ideas on how to get a Cancel button which is both the default button and
responds to escape? Both require setting the button's key equivalent and
there can only be one.
This seems to work:
NSAlert *alert =
On Apr 30, 2014, at 3:21 PM, Jens Alfke j...@mooseyard.com wrote:
You’ll need to do some detective work to find out what function call that
error is really coming from. At that point you can set a breakpoint and look
at the input data.
Maybe for debugging purposes you could drop in an
On Apr 30, 2014, at 3:21 PM, Jens Alfke j...@mooseyard.com wrote:
On Apr 30, 2014, at 8:20 AM, Diederik Meijer | Ten Horses
diede...@tenhorses.com wrote:
Now here is the problem: although the JSON parses fine and populates a
UITableView without any issues, I am still getting the following
Okay, I just brushed up a bit on toolbars (wow, it's been a *very* long time).
How did you create the instance of RBSStopButtonToolbarItem in the nib? From
the docs, I learned that you can drag a view (in your case a button) from the
IB palette into the Allowed Toolbar Items area. This should
On Apr 25, 2014, at 10:22 AM, Sean McBride s...@rogue-research.com wrote:
The 'if form' is arguably better for testing too. Many code coverage tools
are line-based, and with this form it's easier to see if your test cases
cover going in the branch and not.
Sure, and similarly for plain old
On Apr 25, 2014, at 5:52 PM, Peters, Brandon bap...@my.fsu.edu wrote:
Thank you for the guidance! Clicking twice on the toolbar item in IB revealed
the NSButton Attribute Inspector. However, now the images will not show
despite being set in IB. I tried programmatically to set the images for
On Apr 24, 2014, at 10:33 AM, Alex Zavatone z...@mac.com wrote:
I was just asked yesterday if there is any shorthand in Objective-C for if
this thing = nil, then instantiate a new instance from the class
Something like this:
NSString x;
if ([x isEqualtoString:nil]) {
x = @yo;
}
On Apr 24, 2014, at 11:14 AM, Alex Zavatone z...@mac.com wrote:
On Apr 24, 2014, at 11:12 AM, Luther Baker wrote:
Not native and I've no idea when or if this is a good idea ... nor am I sure
how much typing you want to do ... but you _could_ create a class
convenience method for this
On Apr 24, 2014, at 4:10 PM, Alex Zavatone z...@mac.com wrote:
Could we throw a category on NSObject for that and then every class that
originates with NSObject gets that lovely method?
Not exactly, because unlike Smalltalk's nil, Objective-C's nil is *not* an
object. But you could switch
On Apr 24, 2014, at 5:00 PM, Scott Ribe scott_r...@elevated-dev.com wrote:
What's wrong with the simple straightforward C way???
One improvement might be if there was a ?:= conditional assignment operator.
Just as
x += y; is the same as x = x + y;
and likewise for other binary operators,
On Apr 24, 2014, at 5:39 PM, Lee Ann Rucker lruc...@vmware.com wrote:
An orIfNull: for NSObject and NSNull might be nice for those times when you
put placeholders in dictionaries.
For that you really only need a method in one place. I'd be inclined to put it
in NSNull:
+
On Apr 24, 2014, at 6:03 PM, Lee Ann Rucker lruc...@vmware.com wrote:
That's the flip side of what I was thinking about, but also useful. I was
thinking about the code that receives the dictionary:
- (void)processDictionary:(NSDictionary *)d
{
foo = [[d valueForKey:@foo]
On Apr 24, 2014, at 5:45 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
On Apr 24, 2014, at 14:21 , Andy Lee ag...@mac.com wrote:
I still don't see how
foo = [@Something fallbackIfNil:foo];
has any advantage over
foo = foo ?: @Something;
I don’t see how the latter
On Apr 24, 2014, at 10:23 PM, Peters, Brandon bap...@my.fsu.edu wrote:
Yesterday, I got the view for the NSToolbarItem to show the desired image by
putting the set image code for the button in the toolbar item’s validate()
method, then setting the toolbar item’s view to the button in that
Try setting the target/action on the button rather than the toolbar item.
--Andy
On Apr 24, 2014, at 10:47 PM, Peters, Brandon bap...@my.fsu.edu wrote:
Andy,
I get the name of the custom NSToolbarItem, which I should get.
On Apr 24, 2014, at 10:41 PM, Andy Lee ag...@mac.com wrote
On Apr 24, 2014, at 11:15 PM, Peters, Brandon bap...@my.fsu.edu wrote:
My button is inside the customer toolbar item, if I make the button an
outlet, how will I connect to it in IB?
You can do it in code when you set it up. See setAction: and setTarget:.
I don't know for sure if that'll work
On Apr 23, 2014, at 6:36 PM, Jerry Krinock je...@ieee.org wrote:
On 2014 Apr 23, at 15:13, Peters, Brandon bap...@my.fsu.edu wrote:
call [toolbaritem setView:view] and pass in the NSButton.
Try some bonehead debugging with NSLog(). Verify that toolbaritem is your
target item at that
:18.394 3D Rolling Ball Simulator[6321:303] Setting 1st image
for stop button
2014-04-23 20:41:18.395 3D Rolling Ball Simulator[6321:303] Setting 2nd image
for stop button
2014-04-23 20:41:18.395 3D Rolling Ball Simulator[6321:303] Image position: 1
On Apr 23, 2014, at 7:59 PM, Andy Lee ag
On Apr 21, 2014, at 8:27 AM, Dave d...@looktowindward.com wrote:
Also, when I did this, I left the property attributes as “retain” and
“assign”, I’m wondering if it would be better to change them to “strong” and
“weak” ? Although, AFAIK this shouldn’t make a difference?
For object
On Apr 21, 2014, at 10:12 AM, Dave d...@looktowindward.com wrote:
There is a delegate handler which makes passing and calling simple delegates
a doddle. This was originally non ARC.
There is a property defined:
@property (nonatomic,retain) id payloadObject;
On Apr 21, 2014, at 10:53 AM, Alex Zavatone z...@mac.com wrote:
On Apr 21, 2014, at 10:34 AM, Andy Lee wrote:
On Apr 21, 2014, at 8:27 AM, Dave d...@looktowindward.com wrote:
Also, when I did this, I left the property attributes as “retain” and
“assign”, I’m wondering if it would
On Apr 21, 2014, at 5:18 PM, Kevin Meaney k...@yvs.eu.com wrote:
On 21 Apr 2014, at 21:09, Andy Lee ag...@mac.com wrote:
The solution is to use a weak reference for one of the properties in the
cycle. In general, if one object conceptually owns the other, then the
owning object uses
(Forgot to hit Reply All a minute ago.)
I notice both NSImageCell and NSImageView implement setImageScaling:. Both
NSSegmentedCell and NSSegmentedControl implement setImageScaling:forSegment:.
NSButtonCell implements setImageScaling:, and as it turns out so does NSButton
-- but the docs don't
Maybe you could check with the developer of Objectify whether he has something
similar in the works for XML?
http://tigerbears.com/objectify/
--Andy
On Mar 25, 2014, at 3:15 PM, Alex Zavatone z...@mac.com wrote:
We have a lot of legacy systems at my latest gig that all use and output XML
I think the key event is getting stolen by the first responder of whatever your
key window is at the time. I did a quick test and found the menu item did not
get invoked when a text view was selected but *did* get invoked when I removed
the text view.
I suspect a more precise technical answer
On Jan 6, 2014, at 11:54 AM, Fritz Anderson fri...@manoverboard.org wrote:
On 4 Jan 2014, at 1:38 PM, thatsanicehatyouh...@me.com wrote:
I like your user name.
I have a couple of questions about using auto layout (AL) with NSSplitView
and NSScrollView. I have watched the (excellent) WWDC
, Andy Lee wrote:
On Jan 6, 2014, at 11:54 AM, Fritz Anderson fri...@manoverboard.org wrote:
On 4 Jan 2014, at 1:38 PM, thatsanicehatyouh...@me.com wrote:
I like your user name.
I have a couple of questions about using auto layout (AL) with NSSplitView
and NSScrollView. I have watched
On Jan 9, 2014, at 12:55 PM, SevenBits sevenbitst...@gmail.com wrote:
On Thu, Jan 9, 2014 at 12:27 PM, Andy Lee ag...@mac.com wrote:
That's a great thread, thanks!
BTW Apple removed the splitview-without-NSSplitView sample code that's
mentioned in the thread. For anyone still interested
On Jan 9, 2014, at 12:48 PM, Kyle Sluder k...@ksluder.com wrote:
On Thu, Jan 9, 2014, at 07:51 AM, Andy Lee wrote:
As far as I know (see disclaimers), there's no reason you can't implement
split view delegate methods just because you're using Auto Layout, as
long as you aren't calling setFrame
On Jan 9, 2014, at 12:48 PM, Kyle Sluder k...@ksluder.com wrote:
Nope. Please see the 10.8 AppKit Release Notes, which enumerate all the
delegate methods which will kick you out of Auto Layout mode:
splitView:constrainMinCoordinate:ofSubviewAt:
splitView:constrainMaxCoordinate:ofSubviewAt:
On Dec 31, 2013, at 9:13 AM, Alex Hall mehg...@gmail.com wrote:
Sorry, I should have specified - I'm so used to seeing it I didn't even
think. The loop is based on an NSTimer and is used to process sound position
updates. Basically, I use it to pan sounds and draw updates. I'm not putting
On Dec 30, 2013, at 5:34 PM, Alex Hall mehg...@gmail.com wrote:
Anyway, the problem remains that I need to capture keystrokes (and eventually
mouse movements) in a subclass of NSView, but nothing seems to happen. Since
this is an audio game, there is no need for any UI controls to be drawn -
, 2013, at 5:22 PM, Andy Lee wrote:
To answer my own question, it looks like it's done by implementing a
Service. I've gotten it working in a quick scratch application.
--Andy
On Dec 21, 2013, at 6:06 PM, Andy Lee ag...@mac.com wrote:
I know how to accept files that are dragged from
I know how to accept files that are dragged from Finder to the application
icon. It's a matter of adding some settings to Info.plist and implementing the
application:openFiles: application delegate method.
This does not work for dragging URLs from a web browser -- for example,
dragging from
To answer my own question, it looks like it's done by implementing a Service.
I've gotten it working in a quick scratch application.
--Andy
On Dec 21, 2013, at 6:06 PM, Andy Lee ag...@mac.com wrote:
I know how to accept files that are dragged from Finder to the application
icon. It's
I assume you mean dash as in NSBezierPath's setLineDash:count:phase:. Also,
does the dash have just two elements (one segment and one gap), or is it more
complex.
Does it have to be the same exact pattern all the way around? If it's okay to
differ a teeny bit (I bet imperceptibly), you could
On Dec 12, 2013, at 10:06 AM, Andy Lee ag...@mac.com wrote:
Does it have to be the same exact pattern all the way around? If it's okay
to differ a teeny bit (I bet imperceptibly), you could solve the problem
separately for the horizontal edges and the vertical edges, and draw four
lines
On Dec 12, 2013, at 10:06 AM, Andy Lee ag...@mac.com wrote:
In other words, the line length will be an exact multiple of segment length.
Correction: exact multiple of (segmentLength + gapLength).
--Andy
___
Cocoa-dev mailing list (Cocoa-dev
On Dec 12, 2013, at 10:52 AM, Graham Cox graham@bigpond.com wrote:
Does it have to be the same exact pattern all the way around? If it's okay
to differ a teeny bit (I bet imperceptibly), you could solve the problem
separately for the horizontal edges and the vertical edges, and draw four
A friend asked why anyone would want the behavior of capitalizedString. The
only thing I could think of was to convert all caps to title case, which seems
an odd scenario to provide API support for.
Is there a more common need for this method that I haven't thought of?
--Andy
Begin forwarded
On Oct 24, 2013, at 10:19 AM, Jerry Krinock je...@ieee.org wrote:
Starting somewhere after OS X 10.6, NSArray instances respond to the NSSet
method -allObjects. I can’t find any documentation of this. Also, it is not
declared in the header NSArray.h
I see it's also documented for
On Oct 20, 2013, at 7:21 AM, Martin Hewitson martin.hewit...@aei.mpg.de
wrote:
On 20 Oct 2013, at 01:15 am, Kyle Sluder k...@ksluder.com wrote:
Rather than rely on intercepting responder chain-based validation, wouldn't
it be much easier and more reliable to make some object the
On Oct 19, 2013, at 6:58 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote:
Main Window with tabs:
close (cmd-shift-w)
close tab (cmd-w)
All other windows:
close (cmd-w)
close tab (inactive, no keyboard shortcut)
This is pretty much the way things work in
On Oct 19, 2013, at 8:46 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote:
On 19 Oct 2013, at 14:27, Andy Lee ag...@mac.com wrote:
On Oct 19, 2013, at 6:58 AM, Martin Hewitson martin.hewit...@aei.mpg.de
wrote:
Main Window with tabs:
close (cmd-shift-w)
close tab (cmd-w
On Oct 19, 2013, at 9:04 AM, Andy Lee ag...@mac.com wrote:
My first thought was that the app delegate might not get a validateMenuItem:
message if something earlier in the responder chain handles those menu items.
But you could change the actions of the menu items to something unique
stick with the settings arranged by the app delegate
Did I understand correctly?
Thanks to all who replied.
Cheers,
Martin
On 19, Oct, 2013, at 02:46 pm, Uli Kusterer witness.of.teacht...@gmx.net
wrote:
On 19 Oct 2013, at 14:27, Andy Lee ag...@mac.com wrote:
On Oct 19, 2013
On Oct 16, 2013, at 12:57 PM, Steve Mills smi...@makemusic.com wrote:
So at this point, let's finish this thread by going back to my original
question. Is it OK to use the private instance variable _itemArray in NSMenu
since the methods we've added are *extensions* of NSMenu and not a
On Oct 16, 2013, at 1:38 PM, Charles Srstka cocoa...@charlessoft.com wrote:
On Oct 16, 2013, at 11:57 AM, Steve Mills smi...@makemusic.com wrote:
So at this point, let's finish this thread by going back to my original
question. Is it OK to use the private instance variable _itemArray in
On Oct 16, 2013, at 2:09 PM, Steve Mills smi...@makemusic.com wrote:
On Oct 16, 2013, at 12:45:49, Andy Lee ag...@mac.com wrote:
I still don't see what mutability has to do with it, but that's a side issue.
The mutability doesn't matter. I'm just emphasizing that the internal array
On Oct 15, 2013, at 3:50 PM, Steve Mills smi...@makemusic.com wrote:
We have extended NSMenu so we could add some other methods. Many of the
methods iterate over the itemArray like so:
for(NSMenuItem* item in [self itemArray])
Instruments shows that we're leaking NSArrays created
On Oct 15, 2013, at 5:05 PM, Andy Lee ag...@mac.com wrote:
Then instead of [self itemArray] you could use [self nonLeakingItemArray].
If you are indeed subclassing, even better would be to override itemArray to
return [self nonLeakingItemArray]. Then you can use [self itemArray]
everywhere
On Oct 15, 2013, at 4:30 PM, Steve Mills smi...@makemusic.com wrote:
On Oct 15, 2013, at 14:50:51, Steve Mills smi...@makemusic.com wrote:
NSArray*items = [self itemArray];
for(NSMenuItem* item in items)
blah;
[items release];
On Oct 15, 2013, at 6:22 PM, Graham Cox graham@bigpond.com wrote:
On 15/10/2013, at 11:10 PM, Mills, Steve smi...@makemusic.com wrote:
No, it's the itemArray. Ignore the code you can't see in the loop. It's
simply asking each item for its tag.
OK, so if that's the case, I'm
On Sep 11, 2013, at 6:37 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote:
and that while in most code those would be lost in the noise, in some cases
people would need to help ARC out with things like __unsafe_unretained.
Hmm…I always thought that __unsafe_unretained was for instance
I tried using the Provide Feedback link on one of the dev doc pages and got
this:
http://twitpic.com/d89x06
I filed a Radar about it: #14735067, in case anyone wants to dupe it, assuming
it's not just me.
--Andy
___
Cocoa-dev mailing list
Feedback links might be broken like this?
On Aug 14, 2013, at 10:20 AM, Andy Lee wrote:
I tried using the Provide Feedback link on one of the dev doc pages and
got this:
http://twitpic.com/d89x06
I filed a Radar about it: #14735067, in case anyone wants to dupe it,
assuming it's
On Aug 7, 2013, at 3:47 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote:
Instead of trying to use complex approach to hide the fact you need a global,
just use one, and don't try to reuse the existing one for things there are
not designed to do.
static id myCallbackHandler;
void
On Aug 7, 2013, at 12:04 PM, Jean-Daniel Dupas devli...@shadowlab.org wrote:
If you intend to use it from multiple threads, so use a tls.
__thread id myCallbackHandler;
I did not know about __thread, thanks for this. By using tls you're
effectively having each thread store the info that
On Jul 30, 2013, at 5:29 PM, Michael Crawford li...@warplife.com wrote:
That class object occupies a
non-zero quantity of memory, at its lowest level being somewhat like
the combination of a single copy of a C struct, as well as some C
functions, that from the Objective-C point of view, appear
On Jul 30, 2013, at 4:19 AM, Rick Mann rm...@latencyzero.com wrote:
On Jul 30, 2013, at 00:59 , Vincent Habchi vi...@macports.org wrote:
I have a very simple question: if I embed a C-function (more precisely, a
callback from an external C-library) in an Obj-C object, can I expect this
On Jul 30, 2013, at 4:27 AM, Vincent Habchi vi...@macports.org wrote:
Yes, right; it’s a SQLite callback, the first parameter is a void *. I wanted
to pass a pointer to a structure containing both a unique query id (out of
uuid) and a pointer to self, but got told off by ARC because it
On Jul 30, 2013, at 10:42 AM, Scott Ribe scott_r...@elevated-dev.com wrote:
On Jul 30, 2013, at 8:35 AM, Andy Lee ag...@mac.com wrote:
The only effect, as others have explained, is on scope; if you put the
function inside the @implementation and the function has a reference to an
instance
On Jul 30, 2013, at 4:26 AM, Michael Crawford li...@warplife.com wrote:
However, I expect there is a way you could call an Objective-C method
from vanilla C. Possibly you will need some assembly-language glue.
The nice thing is, you don't need glue. You can send Objective-C messages from
On Jul 30, 2013, at 11:25 AM, Scott Ribe scott_r...@elevated-dev.com wrote:
On Jul 30, 2013, at 9:08 AM, Andy Lee ag...@mac.com wrote:
I think it's subject to the same criticisms as *any* direct access to ivars,
although I agree it feels sketchier when done in plain C for some reason.
Yes
On Jul 27, 2013, at 7:53 PM, dangerwillrobinsondan...@gmail.com wrote:
I just tried both approaches and guess which one stays right there with the
menu bar clock and which one lags?
dispatch timer is the winner.
And it's not doing a lot.
I built a test app for each approach to verify.
On Jul 27, 2013, at 9:43 PM, dangerwillrobinsondan...@gmail.com wrote:
But with that I still see a faint lag that seems to update just a hair slower
than the dispatch timer. Noticeable to me at least, I'll post a link to the
sample projects in a bit.
FWIW I created a quick test app using
On Jul 27, 2013, at 9:57 PM, Andy Lee ag...@mac.com wrote:
I'm trying again, this time creating a new NSTimer each time as suggested by
Scott Ribe. Will let it run a while and see if I notice any drift.
Looks pretty solid after several minutes -- as I would expect. To repeat
Scott's
On Jul 27, 2013, at 11:05 PM, Scott Ribe scott_r...@elevated-dev.com wrote:
On Jul 27, 2013, at 7:57 PM, Andy Lee ag...@mac.com wrote:
I'm trying again, this time creating a new NSTimer each time as suggested by
Scott Ribe. Will let it run a while and see if I notice any drift.
FYI, I
This sounds familiar. I remember something wasn't working in a view-based
table and I was baffled until I read somewhere that I needed to set its
delegate. Usually I make a note to myself about stuff like this, but I can't
find the exact link that led me to this discovery. Perhaps one of
When: Thursday, July 11, 2013, 6:30-7:45PM, followed by dinner at Spice, at 8th
and 22nd (*not* the other Spice nearby).
What: Our guest Michele Titolo has kindly volunteered to give a talk entitled
Mastering the Project File:
Do you frequently hear yourself say Don't touch the project file!,
On Jul 8, 2013, at 1:08 PM, Boyd Collier bcolli...@cox.net wrote:
Your suggestion sounded worth learning about, but it appears that there's no
such creature as NSPointerValue.
I'm guessing Jens meant +[NSValue valueWithPointer:].
Did you perhaps mean NSPointerArray?
I'm guessing not,
On Jul 8, 2013, at 12:30 PM, Vincent Habchi vi...@macports.org wrote:
On 8 juil. 2013, at 18:04, Jens Alfke j...@mooseyard.com wrote:
On Jul 7, 2013, at 1:37 PM, Frederick Bartram bartr...@acm.org wrote:
Have you tried using NSData to store C-arrays?
No, since my initial problem was to be
On Jul 2, 2013, at 1:53 PM, Steve Mills smi...@makemusic.com wrote:
On Jul 2, 2013, at 12:10:22, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
There is a button, but it's obvious only after you know where it is.
Select the First Responder item in the list of XIB components on
On Jun 30, 2013, at 2:44 PM, Kyle Sluder k...@ksluder.com wrote:
On Jun 30, 2013, at 6:04 AM, Peter Hudson peter.hud...@me.com wrote:
I then append a second attributed string to the first - with very similar
attributes as the first.
After this, when the row is selected, the system no
Hi Chuck,
On Jun 26, 2013, at 8:30 PM, Chuck Soper chu...@veladg.com wrote:
2. How should I animate the showing or hiding of the 'debug area' view?
I do by sending setFrame: to the two subviews' animator proxies instead of to
the view itself.
// Assumes the split view has two subviews, one
On May 13, 2013, at 11:38 PM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
On May 13, 2013, at 19:41 , Graham Cox graham@bigpond.com wrote:
When you call -removeFromSuperview, the view is deleted, as there are no
more references to it. The other methods are not called
On May 14, 2013, at 12:53 AM, Roland King r...@rols.org wrote:
[...]
- (void) mouseDown: (NSEvent*) event
{
NSView* superView = [self superview];
[self removeFromSuperview];
//[superView addSubview: self];
}
...then dealloc does in fact get called. But if I uncomment that one
1 - 100 of 845 matches
Mail list logo