Ok, so I am answering my own questions.
First, I added the following to the MailOutgoingMessage interface in the Mail.h
file: "@property (copy) MailRichText *content; // Contents of an email
message".
This I copied from the MailMessage interface, but removed the read only.
Now both of the fol
> Once you have a CFTypeRef via CFBridgingRetain(), ARC doesn't care what you
> do with it. Convert it to and from uintptr_t, pass it through a void*, send
> it around via IPC, whatever.
That makes sense. I'm also looking for a pattern similar to this RR
code, so that I can leave out explicit CF
Hi all,
I'm trying to design a custom caching mechanism for a UIWebView. When the first
URL request is loaded, it spawns further URL requests for loading graphics. As
the user clicks links etc, it loads more URL requests.
I can use a subclass of NSURLCache to intercept requests for cached data:
On Jun 19, 2012, at 8:58 PM, Dave Keck wrote:
> Greg Parker wrote:
>> Clean up the void* context with CFRelease(context) or (ObjectType
>> *)CFBridgingRelease(context)
>
> I see -- I was under the impression that CFBridgingRetain/Release was
> meant for converting to/from CFTypes rather than arb
SBSendMail, from Apple's Scripting Bridge example, gives an error on:
[[emailMessage.content attachments] addObject: theAttachment];
The header file, Mail.h, does not have "content" for a new outgoing message,
which doesn't make any sense, since the example sets the property "content" at
the o
> Clean up the void* context with CFRelease(context) or (ObjectType
> *)CFBridgingRelease(context)
I see -- I was under the impression that CFBridgingRetain/Release was
meant for converting to/from CFTypes rather than arbitrary pointers,
but it works as expected.
Thanks!
David
_
On Jun 19, 2012, at 8:28 PM, Dave Keck wrote:
> I have a CFType (specifically a CGPattern) that uses a release
> callback to free resources, and the void* pointer passed to the
> callback is the object to be released.
>
> What's the correct way to release this void* pointer (that's really an
> NS
I have a CFType (specifically a CGPattern) that uses a release
callback to free resources, and the void* pointer passed to the
callback is the object to be released.
What's the correct way to release this void* pointer (that's really an
NSObject subclass) under ARC? Casting it using __bridge_trans
On 19/06/2012, at 3:20 PM, Rick C. wrote:
> That's what I'm doing and it does change the title, but when I do it will
> create a new menu item with the new name that I assigned.
So it does - that's unexpected. In fact, that's really a strange design choice
right there... but I guess it's bee
Is it possible to mount a subdirectory of a server volume using
FSMountServerVolumeSync? As an example, I've got an NSURL that is
basically cifs://example.com/PERSONAL/doej where PERSONAL is the
actual volume, but I want to mount doej as if it were the volume. In
the code below, I'm getting 'PERSON
Thanks again for the replies. Think I was able to get it to work just had to
re-code a few things compared to simply using reloadData...
rc
On Jun 20, 2012, at 1:58 AM, Corbin Dunn wrote:
> Well, that method doesn't animate.
>
> Conceptually, what you have to do is this (and assuming you ar
On 19/06/2012, at 7:02 PM, Alexander Reichstadt wrote:
> Hi,
>
> for the
>
> - (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect
> sweepDirection:(NSLineSweepDirection)sweepDirection
> movementDirection:(NSLineMovementDirection)movementDirection
> remainingRect:(NSRect *)remainin
Well, that method doesn't animate.
Conceptually, what you have to do is this (and assuming you are using a view
based table view):
1. Call beginUpdates on the table *important*
2. Modify the table to add/remove all the rows that you added or removed. Note
that it works like an NSArray, so calli
Hi,
for the
- (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect
sweepDirection:(NSLineSweepDirection)sweepDirection
movementDirection:(NSLineMovementDirection)movementDirection
remainingRect:(NSRect *)remainingRect {
call I'd like to calculate the proposedRect in case there are be
14 matches
Mail list logo