Le 31 mai 2010 à 05:39, Dave Keck a écrit :
>> Unfortunately you probably can’t do any better than that, since there’s no
> cheap way to find out if another process has the file open.
>
> proc_listpidspath() is meant for this, but it is indeed quite expensive. In
> my testing, it takes about a s
On 31 May 2010, at 01:42, John Joyce wrote:
>
> On May 30, 2010, at 5:15 PM, julius wrote:
>
>> John hi
>> On 30 May 2010, at 19:47, John Joyce wrote:
>>
>>> That's not how these constants work.
>>> These are intended to be constants that return the correct type for the
>>> current build of t
Le 31 mai 2010 à 10:25, julius a écrit :
>
> On 31 May 2010, at 01:42, John Joyce wrote:
>
>>
>> On May 30, 2010, at 5:15 PM, julius wrote:
>>
>>> John hi
>>> On 30 May 2010, at 19:47, John Joyce wrote:
>>>
That's not how these constants work.
These are intended to be constants tha
On 31 May 2010, at 09:43, Jean-Daniel Dupas wrote:
>>>
>>> This data is covered, but you may want to explore further the docs, a few
>>> books on cocoa, and sample apps from apple.
>>> Look at how they handle this.
>>> Ideally, look at open source or sample apps that handle similar file types
>>
On May 30, 2010, at 5:15 PM, julius wrote:
> On 30 May 2010, at 20:21, Ken Thomases wrote:
>
>> On May 30, 2010, at 1:04 PM, julius wrote:
>>
>>> unless of course there's a way of specifying the constants for
>>> NSAttributedString using the kUTTypes that I've not found yet
>>
>> The Snow Leop
On May 30, 2010, at 11:46 PM, Quincey Morris wrote:
> On May 30, 2010, at 18:11, Markus Spoettl wrote:
>
>> What I usually do in such situations is create an artificial property on the
>> model object that combines the state of multiple properties into one value.
>> In your case that properties
Le 31 mai 2010 à 10:53, julius a écrit :
> On 31 May 2010, at 09:43, Jean-Daniel Dupas wrote:
This data is covered, but you may want to explore further the docs, a few
books on cocoa, and sample apps from apple.
Look at how they handle this.
Ideally, look at open source
On May 31, 2010, at 4:06 AM, Jean-Daniel Dupas wrote:
> Le 31 mai 2010 à 10:53, julius a écrit :
>
>> and which onto NSMacSimpleTextDocumentType ?
>
> In 3 major releases Apple didn't managed to declare UTI for modern file
> formats like sdef,
$ mdls foo.sdef
...
kMDItemContentType
On 31 May 2010, at 10:23, Ken Thomases wrote:
> On May 31, 2010, at 4:06 AM, Jean-Daniel Dupas wrote:
>
>> Le 31 mai 2010 à 10:53, julius a écrit :
>>
>>> and which onto NSMacSimpleTextDocumentType ?
>>
>> In 3 major releases Apple didn't managed to declare UTI for modern file
>> formats
On 31 May 2010, at 10:06, Jean-Daniel Dupas wrote:
>>
>> Can you perhaps tell me which UTI maps onto NSPlainTextDocumentType
>
> You would guess on kUTTypePlainText
>
>> and which onto NSMacSimpleTextDocumentType ?
>
> In 3 major releases Apple didn't managed to declare UTI for modern file
(reposted to the correct list)
On May 31, 2010, at 01:58, Ken Thomases wrote:
> I haven't tested to be sure, but I believe there's a third possibility. You
> can make the model key path "self" and write the value transformer to
> transform from the the whole object to a color. It can inspect
Hi, I want to make a window appear above a certain point of a view in a
scrollview. When the user clicks outside the window, it will close. While the
window is displayed, the user should not be able to scroll the scrollview.
This is the behavior you get with a context menu, and I want to replica
On May 27, 2010, at 9:43 PM, Bill Appleton wrote:
> *1) I can't hide a file, or test if a file is hidden*
>
> I had to resort to FSGetCatalogInfo -- there is no way to do it through
> NSFileManager, etc. Right?
Hi Bill,
others have already pointed to NSURL (and CFURLRef).
> *2)** **I **can't *
Am 31.05.2010 um 11:57 schrieb Quincey Morris:
I'd suggest that a value transformer solution has *no* advantages
whatsoever, plus several disadvantages, compared to providing a
property on the model object, unless:
Can't follow you with that. I am using the NSValueTransformer on
several
> Really ? I find the first comment in libproc.h pretty clear about it.
If it was private in the strictest sense, the header wouldn't exist.
Certainly since the header has existed since 10.5, Apple intends for
someone to use it?
___
Cocoa-dev mailing li
Hi,
I am trying to add dynamic class methods to a class,
I implement:
@implementation MyClass
+ (BOOL)resolveClassMethod:(SEL)sel
{
if (sel == @selector(MySel)) {
class_addMethod(R3DSDKMeta.self, sel, (IMP)dynamicMethodIMP, "*@:");
return YES;
} else {
return NO;
}
}
NSString* dynamicMethodIMP
Hi,
I guess you need the framework libobjc.A.dylib for that stuff.
Rafael
Le 31 mai 2010 à 08:45, Louis-Philippe a écrit :
> Hi,
>
> I am trying to add dynamic class methods to a class,
> I implement:
>
> @implementation MyClass
>
> + (BOOL)resolveClassMethod:(SEL)sel
> {
> if (sel == @sele
You have to include objc runtime header to use runtime methods.
#include
Le 31 mai 2010 à 15:03, Rafael Cerioli a écrit :
> Hi,
>
> I guess you need the framework libobjc.A.dylib for that stuff.
>
>
> Rafael
>
> Le 31 mai 2010 à 08:45, Louis-Philippe a écrit :
>
>> Hi,
>>
>> I am trying t
Hi,
Where can I find additional information on using NSNetService and sending data
to a printer? I am able to find a printer using NSNetService, but unable to
figure out how to send data. Should I use NSStream, NSSocketPort etc...? I am a
bit confused.
Thanks
Phil
___
On May 31, 2010, at 02:45 PM, Louis-Philippe wrote:
Hi,
I am trying to add dynamic class methods to a class,
I implement:
@implementation MyClass
+ (BOOL)resolveClassMethod:(SEL)sel
{
if (sel == @selector(MySel)) {
class_addMethod(R3DSDKMeta.self, sel, (IMP)dynamicMethodIMP, "*@:");
return
On May 31, 2010, at 4:28 AM, julius wrote:
>
> On 31 May 2010, at 10:06, Jean-Daniel Dupas wrote:
>>>
>>> Can you perhaps tell me which UTI maps onto NSPlainTextDocumentType
>>
>> You would guess on kUTTypePlainText
>>
>>> and which onto NSMacSimpleTextDocumentType ?
>>
>> In 3 major rel
Correct me if I am wrong, but there is no way in objective-c to do a runtime
string execution for which the responding object is not an Objective-C
class?
like, if I have a c++ lib I would like to call from within an Objective-c
class, assuming a call like:
const char * retValue = MyExtLib::ExtLi
On May 31, 2010, at 4:06 AM, Simon Raisin wrote:
> Thank you so much for the responses guys. This is the reason I was confused:
>> NSDeviceWhiteColorSpace
>> Device-dependent color space with white and alpha components (pure white is
>> 1.0)
>> Available in Mac OS X v10.0 and later.
> I thought
On Mon, May 31, 2010 at 1:11 PM, Louis-Philippe wrote:
> Correct me if I am wrong, but there is no way in objective-c to do a runtime
> string execution for which the responding object is not an Objective-C
> class?
>
> like, if I have a c++ lib I would like to call from within an Objective-c
> cl
On 31 May 2010, at 14:03, Rafael Cerioli wrote:
> I guess you need the framework libobjc.A.dylib for that stuff.
1. That's a dylib (aka DLL, aka shared object), not a framework.
2. Since you're using Objective-C, that library is already going to be linked
with your program (it's the Objective-C
On 31 May 2010, at 11:36, Uli Kusterer wrote:
>> *5)** **I **can't create a simple list*
>>
>> I did it the only way I could -- with a table that has one column, etc. Man
>> that was painful for a simple list. Is there a better way?
>
> I have to admit I thought AppKit's way of handling lists wa
On 28 May 2010, at 07:02, Chris Idou wrote:
> I've got an app that needs to send out emails. I'm trying to import mail
> settings from Mail.app. For some reason my keychain has passwords for
> smtp.gmail.com, but not for smtp.me.com. Does anyone know where Mail.app
> stores other passwords? Or
On 31 May 2010, at 12:20, Dave Keck wrote:
>> Really ? I find the first comment in libproc.h pretty clear about it.
>
> If it was private in the strictest sense, the header wouldn't exist.
> Certainly since the header has existed since 10.5, Apple intends for
> someone to use it?
I doubt it. He
On 30 May 2010, at 22:30, Brad Garton wrote:
> To answer my own question: draw to a bitmap offscreen, and then draw that
> into the UIView rect. The bitmap isn't cleared (unless done explicitly).
Hi Brad,
Depending on the application, it may be better to use a CGLayer rather than a
CGBitmapC
Ok... I'm really new to coregraphics and i've run in to a problem i cant seem
to figure out.
I'm trying to take page data from a pdf and draw a thumbnail size preview...
I'm first drawing this to a UIView, then creating CGImageRef from that and
finally converting it to a UIImage.
What I get is
Thanks --
Tried that, but I was still getting the image cleared in the CGLayer. Perhaps
I hadn't set it up properly.
brad
http://music.columbia.edu/~brad
On May 31, 2010, at 2:11 PM, Alastair Houghton wrote:
> On 30 May 2010, at 22:30, Brad Garton wrote:
>
>> To answer my own question: dra
Wow I'm sorry I should have mentioned I'm doing this on iPhone
On May 31, 2010, at 11:11 AM, Development wrote:
> Ok... I'm really new to coregraphics and i've run in to a problem i cant seem
> to figure out.
> I'm trying to take page data from a pdf and draw a thumbnail size preview...
> I'm
Le 31 mai 2010 à 13:41, Alastair Houghton a écrit :
> On 31 May 2010, at 14:03, Rafael Cerioli wrote:
>
>> I guess you need the framework libobjc.A.dylib for that stuff.
>
> 1. That's a dylib (aka DLL, aka shared object), not a framework.
Yes I know that's not a framework, thanks for pointed t
I'm having a problem where fonts are mapping differently on different hardware.
I have a Mac Pro (early 2008) and a Core i5 Macbook Pro. The Mac Pro handles
fonts as expected (it's my main development computer) but the Macbook Pro maps
differently. My app doesn't give any errors about missing fo
On May 31, 2010, at 6:50 AM, Philip Vallone wrote:
> Where can I find additional information on using NSNetService and sending
> data to a printer? I am able to find a printer using NSNetService, but unable
> to figure out how to send data.
Bonjour is only about service discovery. It just tell
On May 31, 2010, at 10:11 AM, Louis-Philippe wrote:
> like, if I have a c++ lib I would like to call from within an Objective-c
> class, assuming a call like:
I’m not sure what it is you’re trying to do. You can easily call C++ code from
Objective-C just by switching the compiler dialect to Obj
On May 31, 2010, at 4:20 AM, Dave Keck wrote:
> If it was private in the strictest sense, the header wouldn't exist.
Keep in mind that the kernel and much of the Darwin-level code is open source,
so it has no such thing as a private API in the strictest sense. In open-source
projects there are
Thanks Jens - always a great help.
Regards,
Phil
On May 31, 2010, at 4:19 PM, Jens Alfke wrote:
>
> On May 31, 2010, at 6:50 AM, Philip Vallone wrote:
>
>> Where can I find additional information on using NSNetService and sending
>> data to a printer? I am able to find a printer using NSNetS
I'm sure many here know all this, but just in case anyone's confused about it,
in future, I'll post what I've found.
Opening the font on each machine, using Font Examiner (handy software... might
have to buy a copy!), I can see that the offset of all the glpyhs on my Macbook
is less than on the
Thanks!
That's what I thought,
2010/5/31 Jens Alfke
>
> On May 31, 2010, at 10:11 AM, Louis-Philippe wrote:
>
> > like, if I have a c++ lib I would like to call from within an Objective-c
> > class, assuming a call like:
>
> I’m not sure what it is you’re trying to do. You can easily call C++ co
Apple's documentation seems to indicate that if you have an object in
a nib with a managed object context outlet, that you can somehow set
the outlet.
The Core Data Programming Guide states "If you are setting the
reference to the context in a nib file, make sure the appropriate
outlet or
Le 31 mai 2010 à 20:50, Rafael Cerioli a écrit :
>
> Le 31 mai 2010 à 13:41, Alastair Houghton a écrit :
>
>> On 31 May 2010, at 14:03, Rafael Cerioli wrote:
>>
>>> I guess you need the framework libobjc.A.dylib for that stuff.
>>
>> 1. That's a dylib (aka DLL, aka shared object), not a frame
Dear list,
I have a CALayer called textLayer which displays some message, for example
"Hello". I perform two consecutive animations on it. At the end of the first
animation, the text is no more visible. The message then gets updated (to "Good
bye", let's say) and the second animation brings the
Development wrote:
What I get is a black rectangle of scrambled colors and no
discernible resemblance to the page data.
...
void * bitmapData = malloc(byteSize); ag
IIRC, malloc() does not initialize the returned memory. Since you
don't seem to do any other initialization, you ar
On May 31, 2010, at 2:24 PM, Rodolfo Niborski wrote:
> My problem is that at the end of the first animation, the "Hello" message
> shows up in its initial position for a fraction of a second.
> I've tried to set the fillMode of the first animation to kCAFillModeForwards
> with no effect.
What y
That was it, I zeroed to the data and it works
Thank you.
On May 31, 2010, at 2:34 PM, Greg Guerin wrote:
> Development wrote:
>
>> What I get is a black rectangle of scrambled colors and no discernible
>> resemblance to the page data.
>> ...
>> void * bitmapData = malloc(byteSize); ag
>
Hi Richard
> Apple's documentation seems to indicate that if you have an object in a nib
> with a managed object context outlet, that you can somehow set the outlet.
>
> The Core Data Programming Guide states "If you are setting the reference to
> the context in a nib file, make sure the approp
On May 31, 2010, at 14:03, Richard Somers wrote:
> Apple's documentation seems to indicate that if you have an object in a nib
> with a managed object context outlet, that you can somehow set the outlet.
>
> The Core Data Programming Guide states "If you are setting the reference to
> the conte
On Mon, 31 May 2010 10:39:38 -0500, John Joyce said:
>Remember, that although creator codes are out, extensions *seem* to be
>recognized,
> and... being a BSD, there is still also the *magic number* for file types...
>(the magic file does get updated regularly)
John,
Is the magic file queried wh
David,
Thank you for your quick answer, I'll try this and let you know what happened.
By the way, I forgot to say that my question was on iPhone, but everything you
mention seems to be available in iPhone OS 3.0.
Rodolfo Niborski
http://itunes.com/apps/yiddishforkids1-alefbeys
Le 31 mai 2010 à
On May 31, 2010, at 14:54, Quincey Morris wrote:
> self.managedObjectContext =
> self.windowControllerOutlet.document.managedObjectContext;
BTW, if it can happen that the window is loaded before the window controller is
added to the the document's window controller list,
windowController
That's a good point that I hadn't given much thought to what happens when the
net is down. I wasn't too worried about only supporting Mail.app because I was
going to give them a way to also enter their smtp settings manually. But using
your framework that only supports 3 mailers with no thunderb
Thanks, it was the iTools bit I needed. But looks like there is a bug in this
code it won't notice me.com and could wrongly think say macdonald.com is mobile
me. But thanks, it gives me what I needed.
--
Chris
On 31/05/2010, at 8:11 PM, Dante Palacios wrote:
NSString *GetPassword(NSString *u
Okay, so the simple solution isn't simple.
this:
NSFont* artFont_2 = [NSFont fontWithName:@"Sonara" size:30.0];
NSLog(@"what's up? %i", [artFont_1 glyphWithName:@"FULL STOP"]);
prints the glyph as "0" (which is NOT the glyph ID)
So what gives?
In fact, all of my glyphs return zero... mmm... yu
Hi all,
I have an app built around SQLite databases. One of the database fields
contains the name of an image file. Within my app I'd like to display that
image file. How can I best copy those image files onto the iPad/iPhone?
I copy my SQLite database file between my Mac and the iPad via iTune
On May 31, 2010, at 7:37 PM, BareFeetWare
wrote:
Hi all,
I have an app built around SQLite databases. One of the database
fields contains the name of an image file. Within my app I'd like to
display that image file. How can I best copy those image files onto
the iPad/iPhone?
Putting
NSTreeNode doesn't seem to be NSCoding compliant. How does one archive a
tree when using NSTreeNode? Does one, when saving, extract the represented
objects for archiving, then rebuild with NSTreeNodes when unarchiving?
Can't seem to find any examples or information.
Thanks,
John Velman
___
I have a Scroll view that contains a master view. This master view adds page
sized views of image data, specifically PDF data. The problem that I am having
is that if I load all these pages at once, I run out of memory and the app
quits. So I was hoping there was a way to make it so that the ima
On May 31, 2010, at 3:54 PM, Quincey Morris wrote:
You can set it yourself.
If you give the view an outlet to File's Owner, you can do it in the
view's awakeFromNib:
self.managedObjectContext =
self.windowControllerOutlet.document.managedObjectContext;
// or self.managedObjectContext =
On May 31, 2010, at 3:40 PM, Joanna Carter wrote:
Normally, I find it easier to write read-only, lazy instantiating,
properties for the Persistent Store Coordinator, MOM and MOC, in the
Controller., Then it is easy to bind any objects in the NIB, that
require the MOC.
Yes, I agree. My Fil
On May 31, 2010, at 4:58 PM, Sean McBride wrote:
> On Mon, 31 May 2010 10:39:38 -0500, John Joyce said:
>
>> Remember, that although creator codes are out, extensions *seem* to be
>> recognized,
>> and... being a BSD, there is still also the *magic number* for file types...
>> (the magic file do
Hi All,
I would like to know the framework available for touch screen in MAC os.
Regards,
Banupriya K
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
On May 31, 2010, at 22:26, Richard Somers wrote:
> Currently I have been getting a reference to the managed object context on
> the fly as needed using the document controller. This has worked fine, except
> today I got a "Document is nil." assertion failure. I have not been able to
> repeat th
Hi,
I personally use smtp.me.com as my server, so I think you need to add that.
As far as I see, [@"macdonald.org" rangeOfString:@"mac"].location would be a
wrong match. I think you need to look for
[hostName hasSuffix:@".me.com"] || [hostName hasSuffix:@".mac.com"]
Right now I'm using http:/
David, Rodolfo,
I'm interested in this too so please excuse me for interfering. What is the
root cause for Rodolfo's problem? He doesn't seem to set
'removedOnCompletion' to 'NO' (default is 'YES' according to docu) so I'm
wondering if this could cause the unwanted effect (by the way I cannot see
65 matches
Mail list logo