On Apr 18, 2010, at 8:13 PM, Michael Ash wrote:
As you can see, the offset of the ivar itself is referenced as a
linker symbol which will then get resolved at load time. And you can
see that no function calls take place.
For some reason I assumed that symbol held the Ivar struct. Which
woul
On Sun, Apr 18, 2010 at 8:30 PM, Izak van Langevelde wrote:
>
> On 2010-04-18, at 11:00 PM, Ken Ferry wrote:
>
> > Ah, so your problem is that not every CG blend mode is available as an
> NSCompositingOperation? If you would, please file a quick bug mentioning
> that you needed this.
> >
>
> From
On 2010-04-18, at 11:00 PM, Ken Ferry wrote:
> Ah, so your problem is that not every CG blend mode is available as an
> NSCompositingOperation? If you would, please file a quick bug mentioning that
> you needed this.
>
From the documentation: "The compositing operations are related to (but
d
On Sun, Apr 18, 2010 at 10:58 PM, Kyle Sluder wrote:
> On Apr 18, 2010, at 6:52 PM, Michael Ash wrote:
>
>> If by "indirected through the runtime" you mean "accesses one global
>> variable to get an offset". It does not, as one might take your
>> comment to indicate, actually call any runtime fun
Ah, so your problem is that not every CG blend mode is available as an
NSCompositingOperation? If you would, please file a quick bug
mentioning that you needed this.
If you're running on 10.6, you can use -[NSImage
CGImageForProposedRect:context:hints:] to get a CGImage, then draw the
CGI
On Apr 18, 2010, at 6:52 PM, Michael Ash wrote:
If by "indirected through the runtime" you mean "accesses one global
variable to get an offset". It does not, as one might take your
comment to indicate, actually call any runtime functions.
If that's the case, how can the language support reord
Are you sure the data is being stored into your "note" dictionary correctly?
Here is my bookmark resolution code, it looks almost exactly like yours. I'm
running on 10.6.3 and building for 10.6 with GC off.
- (NSURL *)resolveBookmarkData:(NSData *)bookmark
withOptions:(NSURLBookmarkResolution
On Apr 18, 2010, at 9:43 AM, Brad Stone wrote:
> I'm storing the bookmark data in an array displayed in a table:
> NSData *bookmarkData = [inAbsoluteURL
> bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile
>
> inclu
On Apr 18, 2010, at 9:26 PM, Dave DeLong wrote:
> That's amazing! Is there some sort of coherent list of magic identifiers
> somewhere?
http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html
http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html
Cheers,
Ken
___
Actually, I just found it!
http://developer.apple.com/mac/library/documentation/DeveloperTools/gcc-4.0.1/cpp/Standard-Predefined-Macros.html#Standard-Predefined-Macros
This will certainly suit my purposes what I was needing. However, the check of
[self class] == self is still really useful.
Th
On Apr 18, 2010, at 9:21 PM, Michael Ash wrote:
> On Sun, Apr 18, 2010 at 10:15 PM, Dave DeLong wrote:
>> Yes, code should obviously be written with this knowledge in mind. The use
>> case I have for it is for macros. I like to use a debugging macro like the
>> following to ensure that method
That's amazing! Is there some sort of coherent list of magic identifiers
somewhere?
Dave
On Apr 18, 2010, at 8:21 PM, Michael Ash wrote:
> The magic __func__ identifier produces a C string which I believe, in
> an ObjC method, has exactly the format you're looking for.
smime.p7s
Description:
On Sun, Apr 18, 2010 at 10:15 PM, Dave DeLong wrote:
> Yes, code should obviously be written with this knowledge in mind. The use
> case I have for it is for macros. I like to use a debugging macro like the
> following to ensure that methods are getting called (without having to break
> execu
Yes, code should obviously be written with this knowledge in mind. The use
case I have for it is for macros. I like to use a debugging macro like the
following to ensure that methods are getting called (without having to break
execution to stop at a breakpoint):
#define LogMethod NSLog(@"-[%@
I need to combine a number of NSImages such that each pixel of the result is
the darkest of the corresponding pixels of the NSImages.
Blend mode 'darken' does exactly what I need to, but I'm clueless about how to
efficiently apply blend modes to NSImages.
An alternative is to use an NSCompositing
The error comes back "file does not exist" and the NSLog statement shows "url =
(null)" after I change the name of the file in the Finder. If I change the
file name back to what it was when the bookmark was saved the file opens fine.
I changed my creation option to 0. No difference.
NSData *
On Apr 18, 2010, at 7:14 PM, Dave DeLong wrote:
> If I'm inside a method, is there a way to know at runtime whether that method
> is a class or an instance method?
Keep in mind that class methods are just instance methods, where the instance
is the class object. (The class object being an inst
On Sun, Apr 18, 2010 at 2:09 AM, Kyle Sluder wrote:
> On Sat, Apr 17, 2010 at 8:29 PM, Ben Haller
> wrote:
>> I don't think I'm crazy about this. There are many different subclasses,
>> so each subclass would have its own corresponding struct, and every ivar
>> access would go through an indire
At runtime, I would use:
#define classMethod() (self == [self class])
And just for fun, at compile-time:
GCC:
#define classMethod() (__builtin_choose_expr( \
__builtin_types_compatible_p(__typeof__(self), \
__typeof__(id)), YES, NO))
LLVM:
#define classMeth
On Sun, Apr 18, 2010 at 8:21 PM, Graham Cox wrote:
>
> On 19/04/2010, at 10:14 AM, Dave DeLong wrote:
>
>> If I'm inside a method, is there a way to know at runtime whether that
>> method is a class or an instance method? Currently the only way I though of
>> to do this is to see if "self" is a
On 19/04/2010, at 10:14 AM, Dave DeLong wrote:
> If I'm inside a method, is there a way to know at runtime whether that method
> is a class or an instance method? Currently the only way I though of to do
> this is to see if "self" is a Class object or not, but I was wondering if
> there's a m
Hi everyone,
I was just writing some code and asked myself a question that I don't know the
answer to, and a quick look in the documentation didn't reveal anything
promising.
If I'm inside a method, is there a way to know at runtime whether that method
is a class or an instance method? Curren
Thanks Jens. I switched to TinyXML to do my xml parsing and things have been
going well so far. Since, all the xml documents I will be parsing are pretty
small, I think it should be ok (shouldn't cause much of a memory overhead
with the DOM route).
George
On Sat, Apr 17, 2010 at 8:58 PM, Jens Al
That was it - importing the wrong header. Thanks.
>
> Look like a problem where the method declaration does not match exactly the
> definition (or you call the method without having imported the header and the
> compiler don't know the method signature).
>
> -- Jean-Daniel
>
>
>
>
___
On 17 Apr 2010, at 4:32 PM, k...@highrolls.net wrote:
> I have two buttons in a view, side by side. Their autoresizingMask are both
> NSViewMaxXMargin + NSViewMaxYMargin
>
> When their containing view is resized only the left button behaves properly.
> The right button stays fixed.
>
> Why?
On Apr 18, 2010, at 2:56 PM, Mark Munz wrote:
> If I try to create an AMWorkflow using the initContentsWithURL:error:
> method, I get a warning.
> warning: incompatible Objective-C types 'struct NSError **', expected
> 'struct NSDictionary **' when passing argument 2 of
> 'initWithContentsOfURL:e
Please reply to list messages on-list.
On 18 Apr 2010, at 2:52 PM, Rui Lopes wrote:
> What is the best option then? SQLite?
Please read the documentation I referred you to. It answers your question. The
requirements you stated — simple data, no relationships, less than thousands of
records (no
If I try to create an AMWorkflow using the initContentsWithURL:error:
method, I get a warning.
- (id)myRunWorkflowAtURL:(NSURL*)fileURL withInput:(id)workflowInput
error:(NSError**)error
{
NSError* createError = nil;
AMWorkflow* workflow = [[AMWorkflow alloc]
initWithContentsOfURL:fileURL e
On Apr 18, 2010, at 12:40 AM, Henrietta Read wrote:
> exactly the point germane, but in perusing NSString.h one is given to
> understand this method might not be as 'smart' as one could wish:
I wouldn’t think it would fail with MacRoman, though. Did you check the output
NSError? Also, try insp
Messages are not rejected with “No reason”. If they’re autorejected it’s
because you’re not subscribed with the address you attempt to send with.
Size is another reason they’re rejected, but that note says so. And it’s done
manually.
And if they are rejected for _any_ other reason, I add info
Oh, okay :)
No worries!
Josh
On 18 Apr 2010, at 19:27, Scott Anguish wrote:
> Because every message isn’t moderated. Only new users. He’s likely posted
> reasonable messages in the past.
>
> This looks like his machine either has a virus, or he decided to send to his
> entire mailing list.
>
Because every message isn’t moderated. Only new users. He’s likely posted
reasonable messages in the past.
This looks like his machine either has a virus, or he decided to send to his
entire mailing list.
If every message was moderated, it would be a full-time job. As it is, I
volunteer to do
On Apr 18, 2010, at 1:26 PM, Gideon King wrote:
>
> CGFloat newMin = 150.0f;
> CGFloat newMax = 0.0f;
> [mapContentSubview setMinDimension:newMin andMaxDimension:newMax];
>
> The method is defined as:
>
> - (void)setMinDimension:(CGFloat)newMinDimension
> andMaxDimension:(CGFloat)newMaxDimens
Le 18 avr. 2010 à 19:26, Gideon King a écrit :
> Hi all,
>
> I'm having a really strange problem with a simple method call:
>
> CGFloat newMin = 150.0f;
> CGFloat newMax = 0.0f;
> [mapContentSubview setMinDimension:newMin andMaxDimension:newMax];
>
> The method is defined as:
>
> - (void)setM
Am 17.04.2010 um 18:44 schrieb Fritz Anderson:
> On 16 Apr 2010, at 11:34 AM, Alexander Spohr wrote:
>
>> That means that -parse does not block. It runs in the event loop.
>
> I have not found this to be the case. In the context of the documents, and of
> the customary terms for XML parsing, "
Hi all,
I'm having a really strange problem with a simple method call:
CGFloat newMin = 150.0f;
CGFloat newMax = 0.0f;
[mapContentSubview setMinDimension:newMin andMaxDimension:newMax];
The method is defined as:
- (void)setMinDimension:(CGFloat)newMinDimension
andMaxDimension:(CGFloat)newMaxDi
Hi list,
I'm using NSViews scrollPoint: method to scroll a custom NSView subclass
programmatically, when certain key events occur. "Use smooth scrolling" in
the appearance tab of SystemPreferences.app is enabled.
The problem is, that "scrollPoint:" seems to evaluate the current modifier
flags and
On Sun, Apr 18, 2010 at 9:58 AM, Joshua Tucker
wrote:
> How did this get past moderation?
How indeed. I've sent two messages to the list before that were trying
to answer a question and both were rejected for "No reason." Someone
from the Ukraine gets into my email and sends just a spam link and
On Apr 18, 2010, at 10:43 AM, Brad Stone wrote:
> I'm storing the bookmark data in an array displayed in a table:
> NSData *bookmarkData = [inAbsoluteURL
> bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile
>
> inc
Is "self.view" the same thing as "button"? You're using the former to produce
a CGPoint, but the latter to produce a bounding rectangle. My guess is that
they're not the same, which means the point is in a different coordinate system
than "button.bounds".
HTH,
Dave
On Apr 18, 2010, at 9:02
I am trying to make an if statement which will check whether the users touch is
within a
UIButton's bounds. I thought this would be an easy affair as UIButton
is a subclass of UIView, however my code doesn't seem to work.
This is the code I have been using.
- (void)touchesMoved:(NSSet *)touches wi
How did this get past moderation?
On 18 Apr 2010, at 15:55, Daniel Grace wrote:
> http://sites.google.com/site/xcsde4rs/ucfn8w
>
> --
> http://www.doomstick.com
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post adm
http://sites.google.com/site/xcsde4rs/ucfn8w
--
http://www.doomstick.com
___
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.ap
I'm storing the bookmark data in an array displayed in a table:
NSData *bookmarkData = [inAbsoluteURL
bookmarkDataWithOptions:NSURLBookmarkCreationSuitableForBookmarkFile
includingResourceValuesForKeys:nil
On Apr 18, 2010, at 3:40 AM, Henrietta Read wrote:
>>>
>>> This leaves the question of why -stringWithContentsOfFile: would fail.
> I'm not sure what heuristics that call uses, but you'd think it would be
> able to handle MacRoman, obsolete though it is.
In general, it is. For example, I just c
On 16/04/2010, at 4:41 PM, Kay Jurkuhn wrote:
> Hi list!
>
> I'm implementing an application service. The desired result of the action is
> to copy a string to the pasteboard.
> But as the communication between caller and called service goes via the
> pasteboard the caller will delete
> the co
On 18.04.2010, at 1:59, Ken Thomases wrote:
Run > Manage Breakpoints > Add Symbolic Breakpoint. Type the name
of the function to break on.
In general, you should familiarize yourself with the Xcode Debugging
Guide:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conce
Hi All,
I have two UIView's in Interface Builder in separate .xib files. The
first .xib file looks like this:
File's OwnerViewControllerX
First Responder UIResponder
MainView
On Apr 17, 2010, at 5:29 PM, Ken Thomases wrote:
> On Apr 17, 2010, at 6:46 PM, James Bucanek wrote:
>
>> How do I get the mount point path of a freshly mounted volume in Snow
>> Leopard?
>>
>> In Leopard (10.5), the NSWorkspaceDidMountNotification included an
>> NSDevicePath value. It contai
>> The call to -stringWithContentsOfFile: looks correct, but you're failing
to check for errors. If it fails, it will return nil, and passing nil to
setString: is illegal and will throw an exception.
right, right... most correct. I can catch the nil.
>> This leaves the question of why -stringWith
50 matches
Mail list logo