appointing.
I think the perfoptimization-dev list would be better:
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Mont
ly mark the declaration with NS_DEPRECATED (so that
the compiler can warn you if you use them.) :(
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Softwar
awing easier. See:
<http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html>
I've been experimenting with it, and it works great, though I have seen it
frequently appear as an offender when profiling with Instruments.
--
____
s talk about this even.
--
________
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 (Coc
me catch such incorrect usage? I've searched but not found...
Cheers,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
t;yes", I've assumed it's "no" and filed
with the suggestion.
In the meantime, I'll create a category method that wraps locationInWindow and
delegates to mouseLocation or similar otherwise.
Thanks to all who replied,
--
that locationInWindow be implemented like this:
- (NSPoint)locationInWindow
{
if (NSDebugEnabled)
{
NSEventType type = [self type];
assert ((type == NSLeftMouseDown) || ... );
}
...
}
--
____
Sean McBride, B. Eng
onQueue is available on
10.5, and GCD is not.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software De
No surprises here. (And it's the risk you take leaving your product's
distribution in the hands of a 3rd party, ie Apple).
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Softwa
... if it works reasonably these days...
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québe
)Gestalt (gestaltSystemVersionBugFix, &fix);
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
I encourage you to file bugs on this,
or maybe add a comment here:
<http://llvm.org/bugs/show_bug.cgi?id=9194>
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-r
ou suggest accomplishing this?
(In the past, I cheated and forced the slider to be an even number of pixels
long, which did the job. This fragile solution broke in 10.7.)
Cheers,
--
____
Sean McBride, B. Eng s...@rogue-research
erwise it will be
>impossible to set values very close to 0, such as 1.
Good idea, though not crucial in my use case.
Any suggested subclassing points? That's where I'm stuck really...
--
____
Sean McB
;https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
Apple
>updates the headers in the next release.
>
>(Another example of this is SecTransformExecute in Securty.framework)
You sure about SecTransformExecute? Its docs don't say anything about needing
to CFRelease the return value...
--
_____
value), and implement my own accessors for it, using
>the primitive value and the proper KVO?
>
>I wish CoreData had ways to automatically handle this.
Use mogenerator. It creates scalar accessors for you:
<http://rentzsch.github.com/mogenerator/>
--
__
the idle counter.) For some reason I
>thought there might have been a new API for this, but I can't find it.
Eric,
Are you thinking of setPresentationOptions: and
NSApplicationPresentationOptions?
--
____
Sean McBride, B. Eng
nce:
Have you read:
<http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html>
specifically the CFZombie stuff?
and
<http://sealiesoftware.com/blog/archive/2008/09/22/
objc_explain_So_you_crashed_in_objc_msgSend.html>
Might help...
--
On Wed, 16 Feb 2011 11:17:27 -0800, Keith Blount said:
>The debugging continues...
You could try valgrind too:
<http://valgrind.org/info/about.html>
It works decently on Mac OS now (though no Obj-C GC support still)...
--
tion.
NSRunningApplication executableArchitecture
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
ble", and indeed I
don't see any method like bitmapData. :(
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec
ypted"];
then
po foo
in gdb
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-dev mail
of your Obj-C .h files like so:
#ifdef __cplusplus
typedef SomeCPPClassPtr SomeCPPClassRef;
#else
typedef void* SomeCPPClassRef;
#endif
hth,
--
________
Sean McBride, B. Eng s...@rogue-research.co
-
nonfragile-abi2 and:
<http://www.mcubedsw.com/blog/index.php/site/comments/new_objective-
c_features/>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
M
lation speed (as you
said), there are subtle incompatibilities between C and C++, and you'll
loose/gain a few compiler warnings that are C-only or C++-only.
--
____
Sean McBride, B. Eng s...@rogue-resear
7;t do this. :
( What version of clang is needed? Is Xcode 4 the min requirement, or
could I still build my code with 3.2.5?
Cheers,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
7;re likely working in a C-based language, this could be educational:
<https://www.securecoding.cert.org/confluence/display/seccode/CERT+C
+Secure+Coding+Standard>
--
____
Sean McBride, B. Eng s...@rogue-re
entirety.
<http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html>
All the bits about memory management should help you debug this.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
any not very wise.
Maybe you're seeing a weirdo threading bug, what if you try everything
on the main thread?
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-res
;yet"? Why do you think they are coming back? They've been gone since
the first Xcode 4 seed and the Xcode 4.0.1 read me says they are deprecated.
(Which, of course, totally sucks!)
--
________
Sean McBride, B. Eng
mpare the objects' classes.
Are you aware that starting in 10.6, the OS provides 'file reference
URLs' which are much like FSRefs. See:
<http://developer.apple.com/library/mac/#releasenotes/Cocoa/Foundation.html>
--
_______
ere:
<http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/
Introduction/Intro.html>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac So
optional transient to-one relationship to
Department named 'employeeId0' and binding the tablecolumn to
departmentsArrayController>arrangedObjects>employeeId0>name, but maybe
I'm barking up the wrong tree
Thanks,
--
___
psn is the Carbon Process Manager's 'process serial number',
similar to a UNIX pid. See the docs for ProcessInformationCopyDictionary
() for example.
--
Sean McBride, B. Eng s...@rogue-res
On Tue, 29 Mar 2011 18:15:28 -0700, Quincey Morris said:
>On Mar 29, 2011, at 14:57, Sean McBride wrote:
>
>> I've considered adding a optional transient to-one relationship to
>> Department named 'employeeId0' and binding the tablecolumn to
>> dep
builds (assuming you still support 32-bit with this project).
But beware that NS_BUILD_32_LIKE_64 also changes the size of NSInteger
in 32bit, which may or may not cause you problems.
--
________
Sean McBride, B. Eng s...@rogue-r
cause problems if you're
>doing something that requires strict type checking, but otherwise, it
>should just work.
Quite right. That's what I meant. :)
--
Sean McBride, B. Eng s...@rogue-research.com
Rogu
If I'm
deleted? If the delete is undone, do I start observing again? And redo?
For these reasons I tend to prefer overriding relationship setters/
mutators and updating my caches/transients there. In this case, by
implementing addEmployeesObject: and removeEmployeesObject: to set/clear
my dep
in a custom
NSControl/NSCell to draw a slider with two thumbs. Works great, and the
appearance remains correct with each new OS.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww
t all and use NSURLs
instead. In that case you'd use URLF
orDirectory:inDomain:appropriateForURL:create:error: instead of
NSSearchPathForDirectoriesInDomains().
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
or set the argument/default inside the main function before
>calling NSApplicationMain
In Xcode, you can also pass -AppleLanguages as an argument to your
executable. This lets you debug in any language, regardless of your
preferred languages in System Prefs.
--
____
d to race conditions. The file may be
unlocked when you check, but then locked right after, but before you
delete. See:
<http://developer.apple.com/library/mac/#documentation/Security/
Conceptual/SecureCodingGuide/Articles/RaceConditions.html>
--
_____
lve alias files (not that their docs say they should, but
I'm experimenting).
The only choice I see is using getResourceValue:forKey:error: and
NSURLIsAliasFileKey then using all the bookmark APIs. Blah. Am I
missing something?
Thanks,
--
_
was hoping I missed something but I guess not.
Cheers!
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
but does let you create aliases. It seems to me the symlink
case should be the convoluted case.
But, as you say, category methods are a nice thing to have!
Thanks,
--
Sean McBride, B. Eng s...@rogue-research.com
Rogu
so, better to test the file's UTI, not its
extension.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montré
;If an error
prevents reading the data" part suggests your suggestion may be safe.
Not sure.
Thanks for the suggestion though!
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchw
ome files are getting 'dynamic UTIs', ex:
$ mdls -name kMDItemContentType /path/to/file.ext
kMDItemContentType = "dyn.ah62d4rv4ge81a5d3"
What gives? Why do some files get these dynamic UTIs? Is
NSPasteboardURLReadingContentsConformToTypesKey therefore useless?
Thanks,
--
_
eate:error:.
Kevin, are you trying to create an alias record or an alias file?
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréa
don't use GC)?
Our app is garbage collected.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
.
You might look at the open source CocoaAsyncSocket, including the GCD version:
<http://code.google.com/p/cocoaasyncsocket/>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.
7;alias' persists in the UI, and the term
'bookmark' is already overloaded). Rant over. :)
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
>is the name of the alias file that writeToFile needs,
>apparently stringing fromPath of the method it's wrapped around.
I think Quincey is right, which is probably why the beginning of the
example calls and prints the result of getcwd().
--
________
h. I've
fixed that in git.
--
________
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-
right.
>and could be given a NULL value (at
>least in fromFile). Of course my fuzziness on 'relative search' may stem
>from my complete non-understanding of 'alias records'. It's all quite
>overwhelming really.
Using null is typical I'd say.
--
_
-button.
>
>How can I link this action (pressing the backspace key on the keyboard)
>to the delete-method?
See:
<http://lists.apple.com/archives/cocoa-dev/2010/Apr/msg01044.html>
--
________
Sean McBride, B. Eng
Concurrency Programming Guide"
and "Threading Programming Guide"?
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
ning...
Cheers,
--
________
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@
ort that Xcode 4 should support plugins.
>
>On 2011-05-13, at 10:48 AM, Sean McBride wrote:
>
>> Hi all,
>>
>> So now that Xcode 4 has deprecated .ibplugins, what are those of us that
>> make use of them going to do instead?
>>
>> (Yes, I know I can still
lly
>multiple KVO observations that need to be made. But often times that's
>done more simply with a regular property.
I have found bindings very helpful for supporting undo, as model changes
are automagically updated in the UI. But sometimes they are a PITA. :)
--
ery minor technical problem. Starting with 10.6 (IIRC) System
Preference plugins went from non-GC to requiring GC. It wasn't a major
transition.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
, my code is GC-only and 64 bit only. I had to go backwards
and make it support non-GC to get my ibplugin working.)
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.r
d
>which allocated it."
I believe so. See also:
<http://www.mikeash.com/pyblog/friday-qa-2009-01-09.html>
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-resea
On Thu, 19 May 2011 14:31:23 -0700, Quincey Morris said:
>On May 19, 2011, at 13:56, Sean McBride wrote:
>
>>> Would it be correct to restate it
>>> like this…
>>>
>>> "In most cases, although you can allocate instances of these classes on
>>&
anular categorizations is really needed, and apparently lacking.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
one must always check BOTH the .h and the docs, as
neither says what the other says.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software
s
to isEqualToString, isEqualToSet, etc. I wonder why...)
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Mont
On May 27, 2011, at 19:57, Douglas Davidson wrote:
>> If you were going to compare FSRefs (FSCompareFSRefs), you wouldn't need to
>> convert to a path, just use CFURLGetFSRef via toll-free bridging.
>
> It shouldn't be necessary to go to FSRefs for this now that we have resource
> properties su
he Apple-
provided gcc 4.2, where it has a different meaning and is largely
useless (fixed in newer gcc).
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Research
deprecated in
docs/comments, but don't actually tag them so the compiler can warn. I
guess they're trying to reduce noise. If so, might be nice to have 2
levels of deprecation warnings: really old, and soon-to-be-old. :)
--
________
Sean
dit > Format > Re-Indent.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_
cated, but reading between the lines it seems AEWP is
discouraged.
Anyone tried both? Any advice?
Thanks,
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
veloper.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html>
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Soft
.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004652-CH1-SW1>
Cheers,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researc
ically, you can't. :(
The table column has only one value binding, so can only be bound to one thing,
not many. You could change your model to have one property that is an
amalgamation of your title, subtitle, and image and bind to that.
--
_________
O 8601, regardless of user preference.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec,
considered too.)
Thanks,
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Cocoa-de
On Jul 27, 2011, at 19:39, Dave Fernandes wrote:
> License agreements are still a necessity. This seems to be what the OP is
> asking about, and not simply a marketing splash screen.
Thanks for the on-topic reply! (Sad that even though I anticipated the 'don't
do that comments', they still cam
eSelectedCellOfColumnIdentifier:@"bar"];
hth,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software
True, you copy-paste that line everywhere, but oh well.
>Also, the scrollRowToVisible call is superfluous, since the
>editColumn:row:withEvent:select: method is documented to do the
>scrolling for you already.
So it is..., thanks. The scrolling code predates by auto editing code.
--
_____
hows "real" at 2.2 GB and "Virtual" at 200 MB. My physical
memory is not even exhausted.
Googling the message yields next to nothing.
Thanks,
--
________
Sean McBride, B. Eng s...@rog
As I understand it, the former applies to
memory in the GC zone, the latter to the malloc zone. In my app anyway,
AUTO_USE_GUARDS is slow, GuardMalloc is slower, and with them both on
it's very slow indeed.
--
____
Sean McBri
[NSMigrationManager(InternalMethods) _doSecondPassForMapping:error:]
-[NSMigrationManager migrateStoreFrom
URL:type:options:withMappingModel:toD
estinationURL:destinationType:destinationOptions:error:]
...
Is this expected?
Thanks,
--
________
Sea
l:
<http://www.softedge.se/Softedge/dSymbolizer.html>
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Develo
27;s not a very discoverable UI).
Thanks,
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer
tion of function 'PerformXPathQuery'
"//mynode" is not an NSString. You want @"//mynode". The @ makes it an
NSString.
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researc
7;s off to Radar. :)
Thanks for your replies Gregory and Matt.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
C
Date,selectDate,counter);
>> NSCalendarDate *tempDate = [selectDate dateByAddingYears:0 months:0
>> days: -counter hours:0 minutes:0 seconds:0];
Sissy,
NSInteger is just a typedef and it's only used in the 10.5 and later
SDKs. But you can use the 10.5 SDK and still support 1
If so, they should live as long as 'self' does.
Do you use the 'bytes' method? Are you aware of the issues with it under GC?
--
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
On 12/9/09 2:25 AM, Henri Häkkinen said:
>On Dec 9, 2009, at 2:05 AM, Sean McBride wrote:
>>
>> And these are ivars I guess? If so, they should live as long as
>'self' does.
>
>Yes, they are ivars.
>
>I was able to resolve the issue by adding invoc
or the Process Manager,
which was the only way to do some things that NSWorkspace could not (in
10.5 and earlier). Process Manager will list background only apps,
unlike NSWorkspace.
--
________
Sean McBride, B. Eng s...@rogue-rese
ill holes in the
Cocoa APIs and minimize 'impedance mismatch'.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Softwa
signal EXC_BAD_ACCESS here
This works in my NSPersistentDocument-based app. Like you, I have no
particular AppleScript support. Have you tried with a fresh app built
from stationary?
--
________
Sean McBride, B. Eng
localizedStandardCompare:, if you support 10.6+) then in
my windowcontroller's awakeFromNib I set the arraycontroller's sort
descriptor by fetching the tableview's.
--
Sean McBride, B. Eng s...@rogue
t requires native execution, or something like this
>could happen on application startup.
The key is LSRequiresNativeExecution BTW.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.ro
would think one place that using NewHandle() is still the best idea is
when an API requires a handle. This is the case for many QuickTime
APIs, and the OP did mention using QuickTime. Another would be the
Alias Manager.
--
________
Sean McBrid
ar
to me that MallocDebug is dead. Have you tried Instruments? Also, this
would probably be better on the xcode list.
--
________
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-researc
ning that objcptr may not
>respond to updateText, which you can eliminate by casting objcptr to the
>appropriate class.
If you are using Cocoa Garbage Collection, be very careful doing this.
IIRC, you loose the automatic 'strongness' and will probably have to add
__strong or CFRetain/
&kContext1 as the context.
--
____
Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
___
Coco
301 - 400 of 1139 matches
Mail list logo