ocoa and
not GLFW. I tried polling the position of the window, but that doesn't work
(the polling is happening, but it prints the same position continuously until
dragging stops). So, how do I get the window to update where it actually,
truly
our performance, you're probably
better off looking into -fprofile-generate and -fprofile-use (in gcc) than what
you're suggesting. Hand tweaking WITHOUT adequate profiling as you're
suggesting is the absolute bane of programming; you'll be spending a lot of
time 'optimi
On Aug 17, 2010, at 5:37 PM, Greg Parker wrote:
> On Aug 17, 2010, at 2:32 PM, Cem Karan wrote:
>> Mmm, my question is, what about Apple's code? I'll be the first to admit, I
>> don't know enough about what goes on under the hood, so what I'm about to
>
On Aug 17, 2010, at 5:20 PM, Stuart Rogers wrote:
> On 17 Aug 2010, at 21:36, Cem Karan wrote:
>> On Aug 17, 2010, at 4:05 PM, Stuart Rogers wrote:
>>>
>>> NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
>>> ...
>>> [pool release];
On Aug 17, 2010, at 4:05 PM, Stuart Rogers wrote:
> On 17 Aug 2010, at 18:07, Ken Ferry wrote:
>> On Tue, Aug 17, 2010 at 9:53 AM, Cem Karan wrote:
>>
>>> One dumb question; I see where you're putting images into an autorelease
>>> pool, but I don'
*sig = [[[ImageSignature alloc] initWithSize:[bmpImgRep
> size]] autorelease];
>float *buffer = [sig allItems];
>
>// Signature creation snipped - it's a simple mapping of pixels to a float
> array
>
>return sig;
> }
ight be able to help you with different
strategies.
Thanks,
Cem Karan
___
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.
sy to implement from that, unlike AES.
Also look at
http://csrc.nist.gov/groups/ST/toolkit/secure_hashing.html
and the testing page at
http://csrc.nist.gov/groups/STM/cavp/index.html#03
for a complete list of testvectors.
Good luck,
Cem Karan
___
Co
legal problems, which is why I was
after the phone number of someone that I could contact directly in Apple's
legal department.
Thank you for the link though.
Thanks,
Cem Karan
> -Original Message-
> From: Kyle Sluder [mailto:kyle.slu...@gmail.com]
> Sent: Tuesday, May 19,
If I could get a real
contact, then I wouldn't have done this.
Thanks,
Cem Karan
I. Savant wrote on Tuesday, May 19, 2009 4:42 PM:
> On Tue, May 19, 2009 at 4:27 PM, Karan, Cem (Civ, ARL/CISD)
> wrote:
> > Various people here at work have been trying to get in
> contac
tml I mean a person's
actual number!) that I can pass on?
For those that are wondering, certain parts of the Enterprise Agreement aren't
applicable to the Federal Government, and our lawyers need to talk to Apple's
lawyers to get it all straightened out
> On May 13, 2009, at 8:30 , Karan, Cem (Civ, ARL/CISD) wrote:
>
> > I have an object that I've turned into a singleton via the
> techniques
> > described at:
> >
> >
> http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CocoaFundame
ink about the fact that I could mark my memory
usage; I'll do that and retest. Thank you!
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
Answering my own question: it had nothing to do with my singleton, and
everything to do with over-releasing of objects that only showed up
when I had multiple threads running at the same time. Please ignore
the original question.
Thanks,
Cem Karan
discovered that I seem to be
leaking memory (I'm not sure about that; I may be misreading what Instruments
is telling me). It appears to be because my singleton object (and anything it
holds) looks like a leak to leaks. Is this normal? Should I be worried?
Th
se swap logic to get the bytes in the right order on
your machine by seeing how the known pattern was mangled when it was
archived.
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator commen
On Feb 4, 2009, at 4:10 PM, Ken Thomases wrote:
On Feb 4, 2009, at 2:47 PM, Cem Karan wrote:
I know that we can only modify GUI elements from the main thread,
but can we get the values for objects from other than the main
thread? E.g., assume I have an editable NSTextField, and I have a
analysis to a worker thread. The worker thread
then directly queries the NSTextField via its stringValue method. Is
this kosher?
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
thing to syslog, and then
parsing that out with a script. Thanks for the help in trying to figure this
out.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Greg Parker wrote on Wednesday, January 28, 2009 4:22 PM
> On Jan 28, 2009, at 10:33 AM, Karan, Cem (Civ, ARL/CISD) wrote:
> > First off, I know this question is going to the wrong list,
> but I have
> > NO idea which list would be best. If anyone wants to jump
> in and
t calls __cyg*() before I
get the chance to do the setup, I'm going to have another crash. So, is there
anything called before main()? What about just before main() returns?
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
int result = // Some long running operation
[self.delegateLock lock];
if ([self.delegate respondsToSelector:@selector(bar:)])
{
[self.delegate bar:result];
}
[self.delegateLock unlock];
}
@end
--- End of MyOpe
Ken Thomases wrote on Tuesday, January 06, 2009 11:24 PM:
> On Jan 6, 2009, at 10:42 AM, Karan, Cem (Civ, ARL/CISD) wrote:
>
> > I know I'm being pedantic, but just to make sure, will the
> following
> > code work?
> >
> > // mySortedArray is an NSA
Adam R. Maxwell wrote on Tuesday, January 06, 2009 9:59 AM:
> On Jan 6, 2009, at 8:16 AM, Karan, Cem (Civ, ARL/CISD) wrote:
>
> > My question is, does NSArray already have a binary search method
> > defined on it in a category somewhere? If it does, I'd rather use
&g
ct to find
the string in the array, but that is slow as it seems to assume an unsorted
array. My question is, does NSArray already have a binary search method
defined on it in a category somewhere? If it does, I'd rather use that.
Thanks,
ector(self.selector)
forKey:@"selector"];
}
- (id) initWithCoder:(NSCoder *)aDecoder
{
self.selector = NSSelectorFromString([aDecoder
decodeObjectForKey:@"selector"]);
}
Is this the correct method?
Thanks,
Cem Karan
___
Cocoa-de
more like the Passive View design
> > pattern. Is this where Apple wants us to head? I want to plan out
my
> > code in a manner that plays as well as possible with Apple's chosen
> > design patterns, which is why I want to know where Apple is headed.
> >
>
here is a built-in way, I'd rather use that.
Thanks,
Cem Karan
___
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.apple.c
ode in a manner that plays as well as
possible with Apple's chosen design patterns, which is why I want to know where
Apple is headed.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moder
Thanks, that worked! I do try to read the examples and CocoaDev, but
I've found that after I've read the examples, the only way I really
learn is by trying and sometimes failing. I appreciate the help and
the quick response.
Thanks,
Cem Karan
On Nov 21, 2008, at 1:55 PM, Volke
he whole thing is
about 32 KB tarballed, so I can email it anywhere anyone wants it.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderato
if at all possible. Can you explain what you are
suggesting about the subviews some more? My only experiences with making views
subviews of other views has lead me to believe that although they can be
rotated and translated in 2D, they cannot be rotated or translated in 3D. Am I
wrong?
eed to be very careful to ensure
that the OpenGL surface doesn't deform the rendered output from the
NSTextView too much, does this sound like a reasonable approach. Note
that I'm NOT trying to make a released product here, just get a feel for
an interface.
Thanks,
Cem Karan
_
what I've described above.
So, can I do it, or is it impossible?
Thanks,
Cem Karan
___
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-
I like this method the best; there is (potentially) a lot of output, and
this is probably the cleanest method. Thanks!
Thanks,
Cem Karan
> -Original Message-
> From: Scott Ribe [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 14, 2008 11:23 AM
> To: Karan, Cem (Civ, ARL/
of time on this library
in any case, but I would like to see what the output is. The problem is that
I'm creating an ordinary Cocoa application, not a command line application. So
where does the output of fprintf(stdout,…) go to in a Cocoa application
> -Original Message-
> From: Chris Hanson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 04, 2008 10:49 AM
> To: Karan, Cem (Civ, ARL/CISD)
> Cc: cocoa-dev@lists.apple.com
> Subject: Re: properties, threads, and KVO
>
> On Nov 4, 2008, at 7:20 AM, Karan, C
pposed to default to thread-safe, and I know that
as long as I don’t explicitly specify getter/setter methods, properties should
be KVC/KVO compliant, but I'm not sure if the above is 100% kosher. Is there
anything I should be worried about?
Thanks,
Cem Karan
___
ve in your
application).
Good luck,
Cem Karan
___
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.apple.com
Help/Unsubscribe
> Like the subject says, can we ask iPhone questions yet? I'm
> stumped and I need help.
>
> Thanks,
> Cem Karan
Thanks to everyone that replied. I put my question up at
http://discussions.apple.com/thread.jspa?threadID=1769333&stqc=true so
if you want to reply to it
Like the subject says, can we ask iPhone questions yet? I'm stumped and I need
help.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moder
lem as I have bits that can fit
into each of the categories, and all from the same object... I guess
I'll just go with notifications, they've got enough flexibility that I
can change things around however I need, should I need to.
Thanks,
Cem Karan
__
doing MVC here. Notifications are used
anywhere you want, but require more (and more careful) work to get right. So,
are bindings considered general purpose, or should they really be reserved for
MVC situations (even though they can work anywhere)?
Th
That was it! Thanks, I should have checked for that first.
Thanks,
Cem Karan
> -Original Message-
> From: Julien Jalon [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 07, 2008 10:39 AM
> To: Karan, Cem (Civ, ARL/CISD)
> Cc: cocoa-dev@lists.apple.com
> Subj
e
to work completely correctly, its just the other two modes that it doesn't
work. Anyone have any clue what is going on?
This is on a OS X 10.5.5 machine with MacFUSE 1.7 installed. The code is being
compiled using Xcode 3.1.1.
Thanks,
Cem Karan
ring intoString:stringValue] ;
BOOL result = [self scanString:stopString intoString:NULL] ;
return result ;
}
Good luck,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin request
nly change one day. That is why I'm trying to
figure out the precise meaning of coalesce when it comes to the user
dictionaries.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
oalescingOnName|NSNotificationCoalescingOnSender) as the options.
The problem is that I want to send all the data along in the user dictionary.
How is that coalesced? Note that I want ALL the data I'm putting in the
dictionary, not just the last user dict.
Thanks,
Cem Karan
__
some kind of
initialization to work right, I keep a boolean around that signals if
the instance was properly initialized. My class's designated
initializer knows how to set that properly, but the superclasses don't,
and if you call a method without correctly initia
Yup, it does. I'll have to keep that in mind the future.
Thanks for saving me from writing a useless bug report!
Thanks,
Cem Karan
-Original Message-
From: Graham Cox [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2008 9:10 AM
To: Karan, Cem (Civ, ARL/CISD)
Cc: coco
I thought that all initializers had to call through the designated initializer,
which means that init should be overridden to call
initWithData:. Am I wrong?
Thanks,
Cem Karan
-Original Message-
From: Graham Cox [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2008 8:19 AM
To
ateMethods
{
NSXMLParser *dummyParser = [[NSXMLParser alloc] init];
NSAssert(dummyParser != nil, @"Problem allocating parser");
NSLog(@"Parser retain count = %u", [dummyParser retainCount]);
[dummyParser release];
}
Thanks,
Cem Karan
52 matches
Mail list logo