)
if (dispatch_semaphore_wait(done, wait) == 0)
{
break
}
} while(true)
> On May 24, 2015, at 09:58, Randy Widell wrote:
>
> Ah, interesting. I'll give that a shot, thanks.
>
>> On May 24, 2015, at 08:58, Stephen J. Butler
>&
, and then resume it.
>
>> On Sun, May 24, 2015 at 10:40 AM, Randy Widell
>> wrote:
>> I’m messing around with Swift to create a network server daemon. Maybe I am
>> thinking too much like a C / C++ programmer, but I am trying to figure out
>> how to gracefully exit
I’m messing around with Swift to create a network server daemon. Maybe I am
thinking too much like a C / C++ programmer, but I am trying to figure out how
to gracefully exit when launchd unloads the daemon. Normally, you would just
trap SIGTERM, but I’m just not finding anything online about h
>
> I second this site. It’s really useful for finding icons. Just be warned that
> some of them don’t look like Apple icons and may feel out of place, even with
> the new flat design style.
>
Agreed. They work well for the application I am working on, but, yeah, that
might not be the case f
not
display in the menu during run time.
> On Oct 18, 2014, at 17:31, Randy Widell wrote:
>
> 1) This is pretty easy. Just create a Pop Up Button, then switch its style
> to “Pull Down”. This will give you a push button with the single down arrow
> on the right. Then just
1) This is pretty easy. Just create a Pop Up Button, then switch its style to
“Pull Down”. This will give you a push button with the single down arrow on
the right. Then just edit the Pop Up Button’s menu. You can give it an icon,
and then size it down horizontally so that only the icon is v
the search
field.
> On Oct 18, 2014, at 15:19, Kyle Sluder wrote:
>
> On Sat, Oct 18, 2014, at 04:51 PM, Randy Widell wrote:
>> That works somewhat, but not really. Half the time the search field
>> remains the first responder as if the call to set the outline view as t
Yeah, I tried that initially. An invalid parameter exception comes flying out
of NSCell’s setStringValue.
> On Oct 18, 2014, at 14:59, Gerd Knops wrote:
>
> Did you try to set it ti nil instead of an empty string?
>
> Gerd
>
>> On Oct 18, 2014, at 4:51 PM, Randy
It looks like a couple of people have asked about this in the past, but none of
the answers are working for me. I am trying to clear the contents of a
NSSearchField and have it go back to its empty state. I don’t have a
pre-Yosemite Mac handy to check if this is a bug / new behavior in Yosemit
> On Oct 9, 2014, at 21:13, Ken Thomases wrote:
>
> On Oct 9, 2014, at 10:56 PM, Randy Widell wrote:
>
>> I’m not sure I am having a hard time figuring this out and I am just not
>> finding anything via Google. I am writing a NSTextFieldCell subclass and I
>>
I’m not sure I am having a hard time figuring this out and I am just not
finding anything via Google. I am writing a NSTextFieldCell subclass and I
want to recalculate the size whenever the string value changes via a binding.
What I can’t seem to figure out is how to observe the change. I cou
Yep. Cool, thanks.
On Nov 28, 2012, at 10:23 AM, Kyle Sluder wrote:
> On Wed, Nov 28, 2012, at 10:09 AM, Randy Widell wrote:
>> Ah, ok. So, just make the sheet another window in the same XIB and use
>> the same window controller. Makes sense.
>
> Or in a different n
What are the best practices concerning connecting documents and window
controllers?
I understand that when I pop up a window related to a document, I need to add
the window controller to the document with addWindowController:.
One thing I am not clear on is how to handle a modal sheet in within
n "action" menu, it may be
better to use the title property of the menu to switch the title between
"Archive" and "Unarchive" rather than display a check mark next to "Archive".
Anyway, thanks again for your help.
On Nov 22, 2012, at 12:16 PM, jonat...@m
.com wrote:
> On 22 Nov 2012, at 18:57, Randy Widell wrote:
>
>> Right, and in other places it works for me. For instance, I have a window
>> with text fields bound to a model object through an object controller.
>> Updating properties of the model updates the text fiel
then iterating over
selectedObjects and changing the property on each.
On Nov 22, 2012, at 1:36, "jonat...@mugginsoft.com"
wrote:
> On 21 Nov 2012, at 22:19, Randy Widell wrote:
>
>> Hmm. Well, I am updating the model (and the database that backs it). I
>&g
tedObjects.
Not sure I want to re-query the database to update the full contents of the
array controller either...unless it's necessary.
On Nov 21, 2012, at 13:46, "jonat...@mugginsoft.com"
wrote:
>
> On 21 Nov 2012, at 20:42, Randy Widell wrote:
>
>> Searc
Searching around the Internet, I see a lot of questions and answers about how
to observe changes to properties of objects in a NSArrayController. Everything
I have seen, though, relates to a third object doing the observing. For
instance:
[arrayController addObserver: viewObject forKeyPath:
m the
user's selection.
Thanks for the help.
On Oct 13, 2012, at 10:38 PM, Ken Thomases wrote:
> On Oct 13, 2012, at 11:17 PM, Randy Widell wrote:
>
>> Wow. Woah. OK, sorry my ignorance offends.
>
> I didn't express offense. At least, I didn't intend to.
>
2, at 8:52 PM, Ken Thomases wrote:
> On Oct 13, 2012, at 9:49 PM, Randy Widell wrote:
>
>> Quick question… For some reason I cannot find an answer.
>>
>> I have a NSWindowController subclass and I want to bind the selection index
>> of a NSComboBox
Quick question… For some reason I cannot find an answer.
I have a NSWindowController subclass and I want to bind the selection index of
a NSComboBox to a NSNumber that is an IBOutlet of the NSWindowController
subclass. I have a NSNumber object in the window's XIB and the object is
linked to t
that
again. So, all is right with the world, I guess.
On Mar 27, 2012, at 9:13 AM, Randy Widell wrote:
> Yup, that was it. public.data has to be the first item in the array. I
> tried:
>
> * public.database (item 0) only: fail.
> * public.database (item 0), public.data (i
) only: success.
Thanks so much. That was driving me crazy.
Randy Widell
On Mar 27, 2012, at 7:50 AM, Kyle Sluder wrote:
> On Mar 26, 2012, at 11:14 PM, Randy Widell wrote:
>
>> It is a custom UTI, so, of course, I export it:
>>
>> UT
OK, this is killing me…primarily because I have had this working in other
applications and cannot find the difference between this current application
and others where it works.
I have an application that opens one file type, and I have the following
document type declaration (anonymized):
On 2/15/11 8:20 PM, mlist0...@gmail.com wrote:
On Feb 15, 2011, at 7:36 PM, Randy Widell wrote:
I would like to have a keyboard shortcut that tags a location on the waveforms
at the location of the mouse cursor. These commands do not make any sense in
the main menu...they could go there
On 2/15/11 7:49 PM, Graham Cox wrote:
On 16/02/2011, at 2:36 PM, Randy Widell wrote:
I have a view displaying waveforms. I would like to have a keyboard shortcut
that tags a location on the waveforms at the location of the mouse cursor.
These commands do not make any sense in the main menu
On 2/15/11 6:11 PM, Kyle Sluder wrote:
On Tue, Feb 15, 2011 at 5:40 PM, Randy Widell wrote:
I am trying to wrap my mind around something and the Apple docs are just not
helping. I am not sure if I am looking in the wrong places or what, but I
am just not getting it.
Binding a menu item to
I am trying to wrap my mind around something and the Apple docs are just
not helping. I am not sure if I am looking in the wrong places or what,
but I am just not getting it.
Binding a menu item to First Responder and setting a key equivalent for
the menu item is trivial.
However, what if I
> Are you running the app in the debugger? If you're building a 4-way
> universal binary, then the debugger will always launch the 32-bit
> version of the executable, even if you're using a 64-bit Mac.
>
> If you want to build the app for 64-bit only, then you have to
> manually set the architectu
I am writing an application that supports a couple of different document
types. One of the document types is a subset of another, so I am using the
same document class for both. When opening the subset type, however, I need
the user to specify a few things about how to import the data. As for th
I cannot seem to find any documentation on this behavior and I really do not
understand what Interface Builder is doing and why. Sometimes, when I add a
control to a window, it automatically sets the control size to "mini." For
instance, I added a multiline label to a new window to advise the use
31 matches
Mail list logo