i-CH15-125024-BAJGFJED>
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québe
ode that uses this:
<http://www.mattballdesign.com/code/>
Alas, TransitionWindow() is deprecated and not available in 64. So
really I don't recommend it.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Resea
apps.
Probably the flash plugin is not dual mode.
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer
t;
> [NSAnimationContext endGrouping];
>}
That'll work, but in my experience if any of the controls in the window
make use of 'autoresizing springs' then they will resize incorrectly if
starting from a window size smaller that the control's minimum size.
--
On 6/4/08 10:18 AM, Stefan Werner said:
>On Jun 4, 2008, at 8:24 AM, Sean McBride wrote:
>> Alas, TransitionWindow() is deprecated and not available in 64. So
>> really I don't recommend it.
>
>Technically speaking, it's not deprecated (at least it's not mark
Jens Alfke ([EMAIL PROTECTED]) on 2008-6-4 9:18 PM said:
>I'd recommend the latter. C99 is backward compatible has a lot of
>useful additions to C. This topic came up recently on the xcode-users
>list and I posted this plug:
>
>> *SNIP*
>>
>> And if that's not enough for you, you can set the c
is not going to happen. Sorry to bring bad news. :)
Do file bugs.
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québe
t;it be much better to just set that up correctly instead of removing
>the grow box?
Well, the window can be told to keep an aspect ratio, but unless the QT
view fills the entire window's content, it's not too useful. NSWindow's
resize delegate methods would pr
If you can require 10.5, then don't use UpdateSystemActivity(), instead,
do this:
IOPMAssertionID assertionID ;
IOReturn err = IOPMAssertionCreate (
kIOPMAssertionTypeNoDisplaySleep,
kIOPMAssertionLevelOn,
&assertionID);
On 6/12/08 12:34 PM, Hank Heijink (Mailinglists) said:
>Look int
eing returned from NSHomeDirectory().
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
ng semantically
>null.
Neat. Could you give an example?
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Develope
oc Debug, which just crashes). So if your
code uses malloc/new/NewPtr of whatever, you'll have a hard time finding
leaks.
Also, I second the recommendation to stay away from finalize. I've used
it exactly twice: 1) to call DisposeHandle() to 2) to call NSLog.
--
_______
arted.
There's always the lower-level:
objc_collect (OBJC_EXHAUSTIVE_COLLECTION |
OBJC_WAIT_UNTIL_DONE);
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-researc
27;ve had this discussion before:
<http://www.cocoabuilder.com/archive/message/cocoa/2008/4/3/203159>
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Ma
27;m_ finished with the speechSynthesizer.
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev m
to undo the
trashing, a file of the same name as the trashed item is put in its old
location. 1) that would cause the wrong alias resolution (since aliases
resolve by path first) and 2) it would make restoring the trashed file tricky.
I think it is very hard to get all the edge cases. Maybe if you
hesizer.
>
>If I were you, I'd file a Bug.
Meaning you agree with me that it shouldn't be my job to keep a strong
reference until its finished speaking?
Cheers,
--
Sean McBride, B. Eng [EMAIL P
On 7/7/08 11:25 PM, Hamish Allan said:
>On Mon, Jul 7, 2008 at 6:33 PM, Sean McBride <[EMAIL PROTECTED]> wrote:
>
>> There's always the lower-level:
>>
>>objc_collect (OBJC_EXHAUSTIVE_COLLECTION |
>>OBJC_WAIT_UNTIL_DONE);
>
>If this were
athan_day/pages/source.xml>
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
On 7/13/08 2:53 PM, Graham Cox said:
>Obviously the tan() function works as it should
Not necessarily so obvious. :) The log10() function was broken in 10.5.2:
<http://lists.apple.com/archives/scitech/2008/Mar/msg00032.html>
--
ince if I close and reopen the window, only 1
new person is there.
Thanks,
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research
redicate in IB. Set the predicate to something like
>parent==nil. This will obviously depend on what you've called your
>'parent' property.
>
>I've blogged about doing this with drag and drop in core data and non-
>core data apps.
>
>http://espresso-served-
's action to the arraycontroller's add: method. No
bindings there.
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
__
ue, and he worked around
>it by using the awakefromNib method to bind the table to the
>representedObject's arrangedObjects in code. I did something similar
>using the windowDidLoad method.
I'll have to try that...
--
Se
or example,
encodeInt32:forKey: but no unsigned equivalent. What should one do if
one wants to encode a uint32? Are there sign extension dangers here?
Cheers,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
decodeInt64ForKey:@"test"];
[unarchiver finishDecoding];
The value of output is _not_ 4294967295, it is -1.
I wonder why they added "encodeInt32:forKey:" but not an unsigned version...
--
Sean McBride,
raise]+6>
>2 breakpoint keep y CGPostError()
>
>Thanks for any tips
Maybe try breaking on 'printf' or 'write' even. In any case, since this
is not a Cocoa question, try the Quartz list. :)
--
Se
you deal with this? If you need to model a uint32,
do you use CD's sint32 and risk sign extension problems, or do you use uint64?
Cheers,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
confirmation of non-
insanity. :) I've filed .
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
http://www.rogue-research.com/vtk/TreeTestFullWidthBug.zip>
Anyone made full width cells work with bindings?
Cheers,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue
IMNSHO, you shouldn't try to detect
such things.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal
t
>case. Have you tried manually handling the updates yourself w/the
>datasource method?
I haven't tried that, but I will.
So is what I'm seeing a bug? Should I file a radar?
Thanks,
--
_
mn:byItem: and test for the same
conditions I use to make a row "full width" (nil tablecolumn etc). In
such cases, I use the treenode's represented object (my model) and
update it myself. I just do nothing in other cases, in which case the
bindings system is still
ion if you want to decouple these; many Cocoa objects do this."
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
just under FSPathMakeRef.
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-de
round and
have come to the same conclusion as you. It looks like it was
deprecated without any replacement being added. You should definitely
file a bug.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
supported API. Still, for 64 bit, I guess it's
the only choice.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montr
3 if you suspect a compiler bug.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Co
/Users/sean/Desktop/test.m:8: warning: cast discards qualifiers from
pointer target type
I suspect that's why the NS version was later added.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
s protocol, as do the Application Kit user
interface elements that support binding."
So shouldn't NSTextField respond to commitEditing? And yet I get:
"-[NSTextField commitEditing]: unrecognized selector sent to instance"
Huh?
--
__________
Gerriet M. Denkmann ([EMAIL PROTECTED]) on 2008-8-8 9:49 PM said:
> some_type a;
> NSValue *data = [ NSValue value: &a withObjCType: @encode
>(some_type) ];
>followed by:
> some_type b;
> [ data getValue: &b ];
>is unsafe, dangerous and strictly to be avoided - especially
Joel Norvell ([EMAIL PROTECTED]) on 2008-8-7 7:07 PM said:
>I'm no expert on the "NSEditor informal protocol," but there was a
>recent thread in which Ken Thomases reply (which I've quoted below)
>might be of help to you.
>
>http://www.cocoabuilder.com/archive/message/cocoa/2008/7/25/214002
Joel,
lly invoked on user interface
elements"). I believe I'll need to change those textfields to be bound
to an NSController subclass.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
On 8/10/08 8:37 PM, Michael Kaye said:
>I've ben running my app with leaks in Instruments and it is reporting
>a fair number of leaks.
Is your app garbage collected? Instruments reports many many false
positives in GC apps.
--
__
per of both apps? If so, google "shmget" for starters...
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
__
VTK has an NSView subclass that can
display any content that VTK can render, including DICOM. Alas, VTK's
DICOM support is somewhat lacking, but may be sufficient for your
purposes. ITK has much better DICOM support.
--
________
Sean
5 now allows
UTF8 in @"" strings that NSLocalizedString/genstrings were updated as well.
Cheers,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-resea
ep your constant strings ASCII-only for
>performance.
Well, performance is secondary to correctness.
Thanks,
Sean
>Aki
>
>On 2008/08/15, at 12:09, Sean McBride wrote:
>
>> Hi all,
>>
>> The docs for NSLocalizedString() say "In order to be parsed
>> c
for updating the doc.
Will do.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
releasenotes/Cocoa/AppKit.html#NSTableView>
"NSTableView/NSOutlineView - Contextual menu support
NSTableView and NSOutlineView now have better contextual menu support..."
--
____
Sean McBride, B. Eng [EMAIL
no compiler flag to catch
comparing a BOOL to YES. Anyone know of a way?
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer
as the user expects (case
sensitivity, Unicode decomposition, etc.)
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer
oo = [NSArray arrayWithObjects:@"foo", @"bar", nil];
return 0;
}
--
$ g++-4.2 -Wformat=2 -Wstrict-null-sentinel /Users/sean/Desktop/test.mm
/Users/sean/Desktop/test.mm:5: warning: missing sentinel in function call
using "(id)nil" in place
, but once you want to do something non-trivial
they become not so useful. You can't get the menu bar and dock to
appear on roll-over, etc., etc. (see archives.)
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue R
ot easier.
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
pass
null to CFRelease(). So an "if (uuidRef)" is needed. (You can pass
null to NSMakeCollectable, but not to CFMakeCollectable).
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
:[self action] to:[self target]];
}
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
an/Desktop/test.m: In function 'main':
/Users/sean/Desktop/test.m:7: warning: comparison of unsigned expression
>= 0 is always true
Turn on those compiler warnings! :)
--
________
Sean McBride, B. Eng
do:
- (IBAction)handleButton:(id)sender
{
(void)sender;
...
}
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Sof
es/carbon-dev/2005/Dec/msg00402.html>
'#pragma unused' will cause some compilers to warn "unknown pragma".
Though, since this is the Cocoa list, and Cocoa is not really portable,
I guess it doesn't matter.
--
Sea
etc. in my NSManagedObject subclass?
I want to be able to bind NSViews using 'employeeX' in the keypath. For
example, I'd like to bind an NSTextfield's value to
departmentController.employee3.fullName.
Thanks,
--
________
ly) to align and pack them differently.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal
nter will break strict-
aliasing rules
This is what I was remembering:
<http://www.cellperformance.com/mike_acton/2006/06/
understanding_strict_aliasing.html#introduction>
--
Sean McBride
; CGPoint cg;};
return ((union _ *)&nspoint)->cg;
}
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac So
{
employee = anEmployee;
break;
}
}
[self didAccessValueForKey:@"employee1"];
return employee;
}
It seems to mostly work, except for situations involving faults firing,
in which case I get an exception
>> right direction? (or has this already been done?) Its for personal
>>> use and not distribution so min specs 10.5.5 etc. is fine.
>>
>> Leopard introduced a new API for this. See NSView's
>> enterFullScreenMode:withOptions: method.
--
Chaitanya,
If you're working with aliases and Cocoa, take a look at the free
NDAlias classes. There are even methods to create alias files.
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Res
SManagedObject.html#//apple_ref/occ/instm/NSManagedObject/
setPrimitiveValue:forKey:>
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
lue];
[self didChangeValueForKey:@"children"
withSetMutation:NSKeyValueSetSetMutation
usingObjects:value_];
}
The reason I bring this up, is because I noticed that mogenerator 1.10
is generating code that incorrectly uses setPrimitiveValue:forKey: as
originally describe
SW6>
Surely their example would not screw up inverse relationships, since
they also recommend one always have inverses...
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researc
Eric Lee ([EMAIL PROTECTED]) on 2008-9-24 10:21 PM said:
>I have a problem. Basically, I want to take the time, and set the text
>field to that time, only the time with 12 Hours. How do you do this?
Have you read about NSDateFormatter?
___
Cocoa-dev
n inspector slices based on what the subclasses
respond to - we have no means to validate that or support it long term.
As a result, this is a duplicate of the bug we have to track this
difference, Bug ID# 5024840."
--
____
Sean M
re's also Canadian English (en_CA), and perhaps others too...
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Dev
apple.com/technotes/tn2002/tn2053.html>
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-de
suming you're on 10.5, take a look at:
/Developer/Extras/PreferencePanes/Processor.prefPane
It can turn off CPUs.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-res
y Roman Characters', maybe that will help?
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Coc
a bug in 2004 ,
so I wouldn't hold my breath. :)
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-de
On 3/10/08 6:11 PM, Scott Anguish said:
>Questions and comments should be sent to the [EMAIL PROTECTED]
> as usual
Small typo: plural lists:
<[EMAIL PROTECTED]>
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Ro
This works, but
>reminds me of BASIC...Is there a better way to do this, to make sure I'm
>getting the delete key, say even on international keyboards?
See NSResponder's deleteBackward: method and docs.
--
____
Sean Mc
onvert to and from: url, fsref, fsspec, path, alias, etc. It is GC and
64 bit aware too.
<http://homepage.mac.com/nathan_day/pages/source.xml>
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
.5? Could Core
Animation accomplish this?
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal,
lScreens:] ()
#7 0x96ac7464 in -[NSView(NSFullScreenMode)
enterFullScreenMode:withOptions:] ()
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Develop
that relies on Garbage Collection.
Also worth noting that IB3 plugins must also be 32 bit, though this is
probably less of a problem in practice. Still, if you plan to write 64
bit and GC only, IB3 plugins can be somewhat annoying to support.
--
_______
en instead of using using
SetSystemUIMode(). Pity.
>You might alternately try to set the window level on your floating
>palette instead, ie. [paletteWindow setLevel:kCGMaximumWindowLevel].
Yes, that is my current workaround.
Thanks,
--
nothing. But alas there is
nothing analogous to the 'WindowTransitionEffect' type. :(
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software D
r.h, it has all you need.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev
ou might search the archives for
other reasons to avoid that API.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software D
ManagedObject]]? If so, how do I do it in the tree
controller case? There is no setSelectedObjects:.
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Ma
tp://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/CreatingThreads/chapter_4_section_4.html#//apple_ref/doc/
uid/2738-125024>
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
ht want to switch? :)
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
ound longer (you could even
copy them to a Classic system, or 10.0, etc.). The Resource Manager is
not deprecated and is even available in 64 bit (unlike other parts of
Carbon). NDResourceFork provides a nice Cocoa wrapper over the C APIs. See:
<http://homepage.mac.com/nathan_day/pages/source.
27;
state. It seems the answer is no.
2) Is it ok to create other managed objects in awakeFromInsert? One
might want to do this to set initial relationships. It seems the answer
is yes.
I'm hoping someone can confirm/deny these.
Thanks,
--
____
e's quicklook mailing list.
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mailing list (Cocoa-
s gives nil.
What is the correct way to programmatically creates these things?
Thanks,
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research
g an NSException raised. It's
raised from [Circle valueForUndefinedKey:]. 'Circle' is an
NSManagedObject subclass.
Does one also have to implement valueForUndefinedKey: in this
situation? I thought removing 'Raises For Not Applicable Keys' was
suppos
even correctly shown in the textfield. But I still
get the exception thrown by NSManagedObject's valueForUndefinedKey: The
docs even say "The default implementation raises an
NSUndefinedKeyException" which seems to be what I'm seeing, but I don't
get why its happe
indeed.
The folks on carbon-dev would know more...
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec,
that the actual behaviour (in 10.5.2) is to
insert the new object _before_ the current selection.
Is my app wonky? Are the docs so wrong?
Thanks,
--
________
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
;> somewhat above center vertically. [...]
No doubt roughly at the golden ratio, for aesthetic pleasantness:
<http://en.wikipedia.org/wiki/Golden_ratio>
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
n constant, and
contrast with kWindowCenterMainScreen.
--
____
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-de
701 - 800 of 1139 matches
Mail list logo