when all you have is a rocket launcher, every problem looks like rocket bait.
--
On 9 Apr, 2014, at 0:52, Maxthon Chan wrote:
> LOL
>
> I actually used cramfs once in a game carried the rules database. The rules
> are so complicated so I tried to make it smaller without sacrificing the
> e
On 10 Apr 2014, at 3:57 pm, Kyle Sluder wrote:
> Try my button tester: https://github.com/kylesluder/ButtonTester
It's definitely very helpful, but there's something I don't understand. Why
does the state toggle between on and off on each click, even for basic
pushbuttons? Is that normal? I'
On Apr 10, 2014, at 12:19 AM, Graham Cox wrote:
>
> It's definitely very helpful, but there's something I don't understand. Why
> does the state toggle between on and off on each click, even for basic
> pushbuttons? Is that normal?
Yup. Push buttons normally don’t show state, so you never noti
On 10 Apr 2014, at 5:22 pm, Kyle Sluder wrote:
> Yup. Push buttons normally don’t show state, so you never notice it.
OK, learned something after all this time. It's also why I was having trouble
making my custom cell work - it wants to use state but was drawing in the
'wrong' state half the
Hi,
I was confused by this:
> It also doesn't make sense to synchronize on the myDict object. That's what
> is in flux. You should synchronize on "self", the object which owns and
> manages myDict.
Surely as long as every access to the dictionary is @synchronized to the same
entity it’s fi
On 9 Apr 2014, at 22:06, Tom Doan wrote:
> I have a dialog which has an NSBox. Inside the NSBox are two
> (separate, but conceptually linked) sets of radio buttons. These are
> just NSButtons with radio style---I haven't (at least intentionally)
> embedded them into an NSMatrix. However, when
On 10 Apr, 2014, at 6:20 pm, Dave wrote:
> Hi,
>
> I was confused by this:
>
>> It also doesn't make sense to synchronize on the myDict object. That's what
>> is in flux. You should synchronize on "self", the object which owns and
>> manages myDict.
>
> Surely as long as every access to
Dear cocoa-dev,
I want to do with an `NSTask` what I am able to do in the terminal via
$ myprogram myfile.ext
I know that `myprogram` (I don't have any control on this program) launches
another program `myauxprogram`. Furthermore, the path to `myprogram` is `path1`
and the path to `myprogr
On Apr 10, 2014, at 6:57 AM, Colas B wrote:
> Dear cocoa-dev,
>
> I want to do with an `NSTask` what I am able to do in the terminal via
>
> $ myprogram myfile.ext
>
> I know that `myprogram` (I don't have any control on this program) launches
> another program `myauxprogram`. Furthermore,
On some occasions I want my controls to collapse and set a width defining
constraint constant to zero.
In some cases, say a checkbox, an onscreen artefact remains.
I presume that this is because the constraint is defining the layout rather
than the frame rectangle.
Is the only workaround to wra
On Apr 9, 2014, at 5:30 PM, Graham Cox wrote:
>
> On 10 Apr 2014, at 7:06 am, Tom Doan wrote:
>
>> have a dialog which has an NSBox. Inside the NSBox are two
>> (separate, but conceptually linked) sets of radio buttons. These are
>> just NSButtons with radio style---I haven't (at least intent
On 10 Apr 2014, at 07:17, Graham Cox wrote:
> Does anyone have a handy guide or pointer to the relevant docs which show all
> the various meanings of highlight, state, appearance and button type. There
> are so many combinations, and the class reference doesn't really explain it
> very well (or
On Apr 10, 2014, at 6:23 AM, Keary Suska wrote:
> This is more likely a shell scripting issue, rather than am NSTask issue,
> unless sandboxing is somehow interfering, and you are obscuring the issue by
> not telling us at least how myprogram is locating myauxprogram. The most
> likely culpri
On Apr 10, 2014, at 5:29 AM, Roland King wrote:
> On 10 Apr, 2014, at 6:20 pm, Dave wrote:
>
>> I was confused by this:
>>
>>> It also doesn't make sense to synchronize on the myDict object. That's
>>> what is in flux. You should synchronize on "self", the object which owns
>>> and manages
> On Apr 10, 2014, at 6:57 AM, Keary Suska wrote:
>
>> On Apr 9, 2014, at 5:30 PM, Graham Cox wrote:
>>
>> I'm not exactly certain of the mechanism, but I think radio buttons interact
>> as a set through the agency of their immediate superview, so if several
>> buttons share it, they are assum
On Apr 10, 2014, at 6:25 AM, Jonathan Mitchell wrote:
>
> On some occasions I want my controls to collapse and set a width defining
> constraint constant to zero.
In general, views should not be resized to zero width or height. A lot of times
things will break internally (divide by zero errors
On 10 Apr 2014, at 17:09, Kyle Sluder wrote:
>>
>> Is the only workaround to wrap such controls in another view and collapse
>> the superview instead?
>
> If you want to remove a view, you should really remove it from its superview.
> You could look into NSStackView, which will do this autom
On 10 Apr 2014, at 17:09, Kyle Sluder wrote:
> On Apr 10, 2014, at 6:25 AM, Jonathan Mitchell wrote:
>>
>> On some occasions I want my controls to collapse and set a width defining
>> constraint constant to zero.
>
> In general, views should not be resized to zero width or height. A lot of
On Thu, Apr 10, 2014, at 11:37 AM, Jonathan Mitchell wrote:
>
> On 10 Apr 2014, at 17:09, Kyle Sluder wrote:
>
> > On Apr 10, 2014, at 6:25 AM, Jonathan Mitchell wrote:
> >>
> >> On some occasions I want my controls to collapse and set a width defining
> >> constraint constant to zero.
> >
>
This is a Cocoa port of a Carbon app (and I also have Windows and
GTK versions). My code assumes that I'm controlling the radio
buttons, which has worked fine until now (apparently the 10.8 SDK).
What I want is a radio style button which turns on when I want it on
and turns off when I want it o
Thanks for the help. Embedding each subset inside a custom view
did fix the problem. It would certainly have been nice to have the
NSButton class reference say something about the change, since it
should have been expected to break at least some existing
software.
> This is a Cocoa port of a C
Hi,
thanks for your answers !
Your idea sounds good. What can I do if I want both shells invoked from
programs and login shells to have the same initialization script? Shall I write
a new script that runs first ~/.login and then myprogram ? Or is there a
simplier way?
In my case, myprogram is
On 2014 Apr 09, at 10:22, Sean McBride wrote:
> A menu's selection is always visible, and I've found bindings on popup menus
> can be useful to deal with the selection. If the object represented by the
> popup's selection is deleted (by some other piece of UI) then the popup's
> selection ca
On Apr 10, 2014, at 1:52 PM, Colas B wrote:
> Your idea sounds good. What can I do if I want both shells invoked from
> programs and login shells to have the same initialization script?
I think it’s better to make sure your login-shell setup script (.bash_profile
or .login) doesn’t have thing
On Apr 10, 2014, at 2:52 PM, Colas B wrote:
> Hi,
>
> thanks for your answers !
> Your idea sounds good. What can I do if I want both shells invoked from
> programs and login shells to have the same initialization script? Shall I
> write a new script that runs first ~/.login and then myprogram
After converting my NIB to use autolayout, I'm not getting an NSBox to
redraw itself at the correct width.
I have a 'Horizontal Line' (NSBox). In the old model, the autoresizing mask
indicated flexible width. To replace it with constraints, I used: leading
space to superview = 0, top space to supe
I am not an unix-ey guy... I don't specify explicitly a bash when I
run my program (with NSTask) : I just give the path to the program. If I
discover the path to the shell being used, does it mean that what used to be
the path of my NSTask will become an argument?About path and
environment var
On Apr 10, 2014, at 2:34 PM, Colas B wrote:
> I don't specify explicitly a bash when I run my program (with NSTask) : I
> just give the path to the program.
It sounds like the program you’re telling NSTask to run is a shell-script. You
can easily verify that by using the ‘file’ command (or j
No, it is "Mach-O 64-bit executable"
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your
In Mac app, a Preferences window nib contains an object controller in Entity
mode, which is bound to the managed object context of a Core Data document. I
realize this is kind of haywired, but please just accept that real life is
sometimes a little messy.
In normal operation, a document is alw
On Apr 10, 2014, at 4:09 PM, Colas B wrote:
> No, it is "Mach-O 64-bit executable"
Then there is no shell run when you execute it via NSTask.
Really, the correct answer is that pdflatex should not depend on a relative or
hard-coded path for gnuplot. (It's fine of course to use such as a defaul
I’ve been testing IAP in the sandbox store on a development iPod and just
started getting this error in -paymentQueue:updatedTransactions: with
(transaction.transactionState == SKPaymentTransactionStateFailed):
Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store"
UserInfo=0x1aa5e0
On Apr 10, 2014, at 3:34 PM, Colas B wrote:
> I am not an unix-ey guy...
>
> I don't specify explicitly a bash when I run my program (with NSTask) : I
> just give the path to the program. If I discover the path to the shell being
> used, does it mean that what used to be the path of my NSTask
33 matches
Mail list logo