is a command-line tool, not an
>API. The actual API to set HFS flags is, I think, somewhere in
>.
Yes. You can use the MoreFilesX sample code and do this:
FSChangeFinderFlags (&theFsRef, true, kHasBundle);
--
________
Sean McBri
me to some of these libraries?
One is BWToolkit:
<http://brandonwalkin.com/bwtoolkit/>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Dev
tities, and the entities existing below.
You could certainly do it without bindings and use the delgate/datasoure
methods of NSOutlineView. A bit of a PITA though.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Ro
me they are out, there is already a newer (incompatible) OS version.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec,
FDocument *pdfDoc =3D [[PDFDocument alloc] initWithURL:fileURL]=3B
There is another case to consider: valid PDF files that are not
supported by Preview/Quartz. For example, pdf files with 3D content
display fine in Acrobat Reader but not in Preview.
--
ke this to the
OpenGL list...
>I was hoping to learn about
>Cocoa+OpenGL+shaders from this demo :-(
You have! :)
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-resear
using a 'transformable' type).
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
h' for one way.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev
ed,
but a good starting point:
<http://developer.apple.com/mac/library/qa/qa2001/qa1279.html>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Ma
, and so it risks
getting prematurely collected. If you do do this, better CFRetain the
object first.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Sof
On 10/15/09 5:12 PM, Oftenwrong Soong said:
>What is the Cocoa-fied way to communicate via a serial port?
The newest AMSerialPort code is now on sourceforge:
<http://sourceforge.net/projects/amserial/>
--
____
Sean McBrid
re a utility that allows me to see every event as
>it's sent? Just log-style output is fine.
AEDebugSends?
<http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECAE>
--
____
Sean McBride, B. Eng
do better, using NSImage's imageTypes method.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
use addChildWindow:ordered: to
keep your floating window linked to the slider's window. You can use an
NSTimer to close the window after a short delay.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Resear
On 10/17/09 10:21 PM, Alastair Houghton said:
>On 17 Oct 2009, at 03:12, Sean McBride wrote:
>
>> On 10/10/09 11:15 AM, Sander Stoks said:
>>
>>> First, do I really have to add all types to my Info.plist file? If
>>> the OS gets an update which adds a new f
ld you.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mailin
ck, and we have not seen
>any new discussions about it
In my experience, this has not changed in 10.6.1.
OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE does not do what its
name implies. Which is a real shame because it would be useful for debugging.
--
_____
Any advice on how to debug this?
(I can repro this with 2 customer-provided documents, but I've not been
able to create a document with this problem myself. Happens on 10.5.8
and 10.6.1; my app is garbage collected.)
Thanks,
--
____
Se
copy), so remember to test on 10.5 too (if you support it).
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
Hi all,
Occasionally, my GC app crashes in objc_msgSend with none of my code in
the backtrace. This only happens to customers; I've never caught it in gdb.
I've read through Greg's awesome "So you crashed in objc_msgSend()"
article, but I still don't have a clue. :(
I'm able to determine that t
eopard crash logs.
I have seen, and love that feature BTW!
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software D
e office do
not have mics, so our users test this way more than us.
Thanks also to Bill and Jens for their replies. For the record, I don't
use NSMessagePort nor Distributed Objects, nor do I do any dynamic
loading nor unloading of bundles.
Cheers,
--
________
On 10/26/09 9:34 PM, Sandro Noël said:
>I'm having some problems with FSMountServerVolumeSync
Since that's a Carbon function, maybe the carbon-dev list would be more
appropriate (and yield you better answers).
--
____
Sean Mc
I'd
>really appreciate it.
I'd also try guard malloc.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Sof
and testing your improvements.
Good luck!
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
27; (the 'if' body).
But if I do anyway (the commented 'if'), I get the 'dangling reference'
error. If I don't, I don't.
Even if I do [scene addTargetsWeak:[scene targetsWeak]] I get the error.
Does this make any sense to anyone?
Thanks,
pple provides no API, but you can use a union like this:
typedef union
{
Float32 floatVal;
uint32_t intVal;
} SwapUnion;
Then swap the int part with the int swapping APIs.
--
________
Sean McBride, B. Eng
though they take floats, they return structs. Odd.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
f you add the -Wstrict-aliasing warning flag?
That's why I suggested using a union. See also:
<http://cellperformance.beyond3d.com/articles/2006/06/understanding-
strict-aliasing.html>
--
Sean McBride, B. Eng
x27;context', which ends
up firing a fault of some other object, etc. At some point
awakeFromFetch is in the backtrace and at some later point I mutate a
relationship. Ick.
This suggests to me a design flaw in my code
--
________
date'. Also use keyPathsForValuesAffectingValueForKey to indicate
that 'timelessDate' depends on 'date'.
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchw
worry
that strange things could happen there. In general, it will also depend
how expensive it is to construct the derived property. Dates are fairly
lightweight, so I doubt it matters here.
--
Sean McBride, B. Eng
he Dock so it
>won't lose its current state?
Probably by sending it a quit apple event. Searching the web/archives
should yield lots of sample code on how to do that (in C, shell script,
applescript, etc.)
--
____
Sean McBri
ugly with more than 3 or so properties...
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
SSwapLittleFloatToHost. I still don't get
why the CF versions do not. ie why is there no
CFSwapFloat32LittleToHost? They only have those weird host<->swapped
versions.
--
Sean McBride, B. Eng
describe, they are freshly created. I filed bugs for several and most
were fixed in 10.6. The one you describe here is fixed.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.ro
On 10/30/09 5:20 PM, Kyle Sluder said:
>On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride
>wrote:
>> Ah yes, I forgot about those... But I've found them not useful in
>> practice. I don't get why for ints they have host<->big, host<->little,
>> etc.
David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said:
>anyone have some sample code for a function that does the equivalent
>of HIViewFlashDirtyArea() ?
>
>i'd like to have this i the debug version of my program to help flush
>out inefficient invalidating.
>
>or:
>
>how do i fetch the
ument, the creation of new Foos. When I
detect new ones, I'll perform some fetches, create new objects, relate
them appropriately, etc.
(In the past, I tried doing such things inside Foo's awakeFromInsert but
I discovered that performing a fetch from that function leads to various
problems.)
in
>NSManagedObjectContextObjectsDidChangeNotification instead.
Perhaps NSManagedObjectContextObjectsDidChangeNotification is the thing
I have overlooked! I currently use it almost nowhere but have tonnes
and tonnes of KVO observing going on.
I'll have to RTFM on NSManagedObjectC
ontextOb
er:
<http://lists.apple.com/mailman/listinfo/quartz-dev>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal,
27;ll have to enumerate them all). Have you
observed a performance problem because of this?
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac S
edObjectsKey case). Unless I'm missing something?
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Mo
>against 10.6.
If you're working on 10.6, are you using his newest fixes?
<http://github.com/martinkahr/apple_remote_control>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
library easily enough.
Here ya go:
>Or we can enable change tracking in -
>awakeFromFetch. But that would mean generic setters will dirty newly
>fetched objects, and their containing documents, which people objected
>to, and resulted in the current behavior.
I don't mind the current behaviour
is a pain. One small
model change and your file format is different and unreadable by older
versions of your software. 10.6 also has improvements here (supposedly).
Good luck!
--
Sean McBride, B. Eng
you need a popup with some items that never change (which could
include any number of separators) and some items that come from, say, an
NSArrayController. You can use the 'content placement tag'. See
NSContentPlacementTagBindingOption.
--
_________
r sound later anyway...). Perhaps
CoreAudio has a better solution.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, C
instantly on laptops, which will turn off the
>audio hardware when it hasn't been used in a few minutes, to save
>battery power. Turning it back on delays the sound a fraction of a
>second and creates a slight 'pop'.)
Ugh.
--
___
om/mailman/listinfo/coreaudio-api>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Mo
increase priority.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev maili
On 11/10/09 2:13 PM, Bob Barnes said:
>Good ideas, but the static analyzer is Xcode 3.2, which requires
>10.6 I believe. I'm still running 10.5.
<http://www.karppinen.fi/analysistool/>
--
____
Sean McBride, B. Eng
filing>
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Plea
kMagicBusyCreationDate? See Finder.h comments.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
and
'anObserver'? (I'm assuming not.)
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
still discuss them?
(PS: my bug is 5965794, if you want to reference it in your dupe.)
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
mplement the dataOfType:error: method.
What do you mean exactly by "derived properties"? Are they transient?
Are they in your xcdatamodel? In any case, I believe your problem is
that you can only fetch against properties that are in the persistent
store ie in your xcdatamodel and not tran
g like this:
objc[60273]: REPLACED: -[NSArray firstObject] by category RRExtra (IMP
was 0x9612d970 (/System/Library/Frameworks/CoreFoundation.framework/
Versions/A/CoreFoundation), now 0x21b50e (/path/to/myapp))
--
____
Sean McBr
t;
Should one call super for all the viewWill/Did methods?
Thanks,
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Aaron Clarke (clark...@gmail.com) on 2009-11-18 8:28 PM said:
>> Oh -- another thing. Does your subclass of NSCollectionView override:
>>
>> (void)viewWillMoveToWindow:(NSWindow *)window {
>>
>> but not call super? If not... call super! Your classes should always
>> call super if it is defined in
7;s a
>"So, You've Crashed In objc_msgsend" FAQ out there on teh interwebz
>somewhere that goes into more detail on troubleshooting.
It's here:
<http://www.sealiesoftware.com/blog/archive/2008/09/22/
objc_explain_So_you_crashed_in_objc_msgSend.html>
--
__
Scott Ribe (scott_r...@killerbytes.com) on 2009-11-19 8:53 PM said:
>Table with editable columns, user is editing a cell, user is done, user
>clicks "Save" button. User's last change is lost because
>tableView:setObjectValue:forTableColumn:row: is not called. It is only
>called if the cell loses f
Lynn Barton (lynnbar...@mac.com) on 2009-11-19 11:15 PM said:
>This is an example of what not to do:
>+ (Rectangle *)rectangleOfColor:(NSColor *) color
>{
> self = [[Rectangle alloc] init]; // BAD
> [self setColor:color];
> return [self autorelease];
>}
>
>However, on page 49 I r
accessors, but
occasionally I implement custom ones. I couldn't find a general
discussion of what can and can't be done safely in much methods.
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Rese
how about
NSWindow's setAspectRatio:?
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal,
Quincey Morris (quinceymor...@earthlink.net) on 2009-11-20 6:34 PM said:
>...the window controller could send
>'commitEditing:' messages directly to text fields and other views that
>implement the NSEditor protocol.
Nope. Despite the docs, you can't send commitEditing to a textfield.
See also:
<
jonat...@mugginsoft.com (jonat...@mugginsoft.com) on 2009-11-22 9:08 AM said:
>Under 10.5.6 there were acknowledged issues with the magic combination
>of Core Data, Garbage Collection and NSPersistentDocument SQL Store.
>See http://lists.apple.com/archives/Cocoa-dev/2009/Feb/msg00176.html
>
>I can
On 11/26/09 9:18 AM, Tom Jones said:
>I thought I could just create a Global variable but that does not work.
It should.
>What do I need to do?
Post code.
--
____
Sean McBride, B. Eng s...@rogue-research.com
t;maybe i need to correct? thank you,
That feature is from Launch Services and is called 'file quarantine'.
Hopefully knowing those terms will help you find more info.
--
________
Sean McBride, B. Eng s...@rogue-resear
MakeRect (1.0f, 2.0f, ...)
which has no warnings in 32 nor 64. It would be nice if we could write
something like:
NSRect foo = NSMakeRect (1.0cg, 2.0cg, ...)
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Resea
ror
{
if (error)
{
NSDictionary* userInfo = [error userInfo];
NSLog (@"encountered the following error: %@", userInfo);
Debugger();
}
return error;
}
--
_______
ork with branches. I
actually find myself missing Rez<->DeRez.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
merge certainly cannot. I doubt other's can either.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Softwa
the only one
you need. Ex, you can observe "values.colourPreference".
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Sof
to proceed...
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-d
ome standard types used by Objective-C, including
id. So if you include this, your headers can use the "id" data type even
if they're included from plain C++ or C files."
--
________
Sean McBride, B. En
&_assertionID);
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mailing list (Coco
't be deprecated for a long long time either, just like the
Resource Manager. Many file formats (including QuickTime's .mov) store
aliases and so Apple needs to keep this functionality "forever".
--
_
M) 2) is slower to fetch against vs using the permanent
NSManagedObjectID. I'm curious why you are switching. I have thought
about doing the same, but it just seems like way more work for little benefit.
--
________
Sean McBride, B. E
earner.
I'm pretty sure you can use just <, >, ==, etc. with NSDates in NSPredicates.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Deve
to go :)
IIRC, UpdateSystemActivity was accidentally/incorrectly excluded from 64
bit on some older SDK, I think the 10.5 SDK. That might be why it works
for you and not him.
--
________
Sean McBride, B. Eng s...@rogue-research.com
arning about? It does
seem related to CALayer, is there something special about adding
@property to subclasses of CALayer?
This exact question has gone unanswered before:
<http://lists.apple.com/archives/Cocoa-dev//2008/Apr/msg00199.html>
Thanks,
--
_______
ee it I have the following options:
You could make your file format a package and store within it the TIFFs
and the CoreData persistent store. You can add a 'uuid' string
attribute to your Employee entity and use that as the filename.
--
___
days, but look through Finder.h, and
read about kFirstMagicBusyFiletype and kMagicBusyCreationDate.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software
o in a Core Data context using a 'transformable'
attribute. Comparing NSDateComponents is harder because you also need a
calendar, etc.
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-re
a look at this:
<http://www.brandonwalkin.com/bwtoolkit/>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Mont
Ben Haller (bhcocoa...@sticksoftware.com) on 2010-04-17 09:06 said:
>>> This should cast "individual" to void* before doing the pointer
>>> arithmetic, of course.
>>
>> And of course by "void*" you meant "uint8_t*". Pointer arithmetic
>> is undefined on voids... it happens to be supported by gcc
ject:event]];
}
else
{
[super keyDown:event];
}
}
Thanks to Corbin Dunn for 90% of this solution!
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
t;running in other views for the parent window (which is a 'traditional'
>IB created window) with no problems at all.
>
>Any pointers towards a cause (or solution) are much appreciated.
Does it work if you don't use NSBorderlessWindowMask?
--
_____
searching the sample code section for 'table' does not
reveal this sample. :(
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research
ourse, it is impossible to make the retain count (by honest
>means) drop below 2. Is this normal expected behavior?
Probably. Why do you ask? What do you want to do in dealloc? Do you
know about willTurnIntoFault?
--
________
Sean
Rainer Standke (li...@standke.com) on 2010-04-27 20:14 said:
>Hello,
>
>is there a way to get to the finder label of a file from Cocoa? I'd like
>to be able to get & set them.
In 10.6 you can use NSWorkspace's:
- (NSArray *)fileLabels
- (NSArray *)fileLabelColors
On older OSes, you'll need to u
calls are for the same
ManagedObject, or is it just that each ManagedObject is receiving an
awakeFromFetch (and therefore triggering your breakpoint many times)?
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Resea
rary/samplecode/
RoundTransparentWindow/Introduction/Intro.html>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montré
Gideon King (gid...@novamind.com) on 2010-05-01 09:42 said:
>Hi, I have some places in my code where I have managed objects that need
>to observe various key paths.
Why? (I'm curious... I've never used such a pattern.) Perhaps instead
you could override setters so that they perform other action
lso, you should never use sprintf. Use snprintf instead.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
On Fri, 7 May 2010 21:50:46 +0100, Alastair Houghton said:
>On 7 May 2010, at 21:16, Sean McBride wrote:
>
>> Also, you should never use sprintf. Use snprintf instead.
>
>snprintf() is safer, certainly, but "never" is a little strong for my
>taste. Like goto
x27;t play well with code coverage. If the 'if' and
its body are on the same line then knowing that that line executed does
not tell you as much as it could if the body was on its own line.
--
________
Sean McBride, B. Eng
l it would be much appreciated.
I believe this recent Apple sample code does what you're looking for:
<http://developer.apple.com/mac/library/samplecode/AnimatedTableView/
Introduction/Intro.html>
--
____
Sean McBride, B. Eng
mment though: my understanding is
that calling removeObserver from dealloc is, in general, discouraged.
See here for some reasoning:
<http://www.karppinen.fi/analysistool/>
--
Sean McBride, B. Eng s...@rogue-resea
101 - 200 of 1139 matches
Mail list logo