On Apr 6, 2010, at 8:16 PM, Ken Ferry wrote:
This was once true, but is out of date. I'd like to see a test
app. For example, how do you know you aren't getting
antialiasing? It may be that you just don't like the output. :-)
Well - NSImageInterpolationHigh and NSImageInterpolationNone
On 12 Apr 2010, at 17:33, Jens Alfke wrote:
> There are also other data storage libraries that have a simpler data model
> than sqlite (they’re like on-disk NSDictionaries) so they’re a bit simpler to
> use and can potentially run faster. Tokyo Cabinet seems like the main
> contender in that ar
tion because it's basically using what's
available in the stat() block and nothing else.
You should be fine in just using NSFileManager and asking for fileAttributes
using an NSDirectoryEnumerator. And as that gets faster, you'll get faster. If
you're that worried about it,
456-7890"
You're trying to format a number object with NSNumberFormatter and get the
formatter to put junk in the middle of the number [digit sequence].
NSNumberFormatter does not support formats putting junk in the middle of the
number, except for a limited set involving the thousands sep
Am I missing something or does the new Documentation viewer for XCode 3.2 suck?
I just upgraded my dev machine to Snow Leopard and installed XCode 3.2 and went
to look up some Obj-C classes and everything is wacked. Gone is the filtered
search results TableView above my the documentation pages -
Noted... I'll file the bug report but will spare the xcode-users subscribers
the post as you answered my question.
Thank you.
--Chris
On Apr 15, 2010, at 5:28 PM, Kyle Sluder wrote:
> On Thu, Apr 15, 2010 at 4:48 PM, Chris Tracewell wrote:
>> Okay, so now that I flew off the
What would be the appropriate way to have an NSTableView notice that you hit
the delete key and delete the current row?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Con
ewer...! m.
Except that there can be many Top Ten lists (Mac Apps, iPad Apps,
iPhone Apps, Productivity Apps) etc, and then different sites/people
put different things on their lists. You could pretty quickly get a
list of unique programs much larger than 10 ;)
-Chris Backas
CONFI
roxy];
NSLog(@"Connection Setup %...@\n\n\n", remObject);
[remObject retain];
}
.. which refuses to connect and which does NOT display the remObject
as having been found and assigned in NSLog, but simply (null).
Am I doing something so obviously crazy that I can't see
4u; NSDictionaryController is tagged as being
available in 10.5 (Leopard) and later.
So Tiger's unarchiver doesn't know what to do with an archived
NSDictionaryController. There's a setting in Interface Builder which should
warn you about this kind of thing - if you're set
On 26 Apr 2010, at 5:03 PM, Jack Repenning wrote:
> On Apr 26, 2010, at 4:34 PM, Chris Parker wrote:
>
>> if you're setting the deployment target for the nib correctly then IB should
>> warn you that you're encoding something that 10.4 knows nothing about.
>
&g
r was introduced in 10.5, I would generally assume any
Cocoa nibs these days should have a subclass of one of those two classes (or
NSApplication, in the case of the main nib file) as its File’s Owner.
— Chris
___
Cocoa-dev mailing list (Cocoa-dev
approx 23.4,
which is pretty close to the estimated size you're expecting. Perhaps
this negative value implies that the drawing of this glyph is actually
to start from *slightly* in the previous character's area?
Total guess, feel free to ignore etc etc ;)
Chris Backas
On Apr 28,
On May 2, 2010, at 6:03 AM, Rick Mann wrote:
> I saw that, I had hoped that by not specifying an attribute, it would mean
> the object itself, not an attribute on the object.
Predicates have the “self” keyword for that.
— Chris
___
Coc
stent. (You'll note
that there's an NSPanel class but no NSDialog, I don't think it's just a matter
of naming differences.)
Moving your codebase to Cocoa is a great point to clean up these sorts of
things.
-- Chris
___
Co
You're thinking of otool, not otest. OCUnit's otest does load bundles,
but it doesn't open (say) ARM bundles on Intel-based Macs.
You can't load a bundle for one platform on another. They're different
platforms...
-- Chris
On May 5, 2010, at 1:10 PM, Bill Bumg
I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I have a single entity app
where I subclassed NSManagedObject so I can generate a "Job Ticket ID" for my
Job entity whenever a new Job is inserted. However I am getting an error in my
Log that is complaining that...
-[NSCFNumber count]: unrecogn
Hi Joanna,
I'm still not getting anywhere. Any chance you could send me your test project
or post it somewhere? It would be very helpful.
Thanks
Chris
On May 12, 2010, at 2:39 AM, Joanna Carter wrote:
> Hi Chris
>
>> I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I hav
gItemURL:(NSURL
**)resultingURL error:(NSError **)error
AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER;
.chris
--
Chris Parker
iPhone Frameworks
Apple Inc.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
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 why my keychain has smtp.gmail.com passwords, but n
ableView with one column painful?
What would you expect to be different about a “simple list” — a table with only
one column — compared to a table with multiple columns?
— Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
OK, I see. So is Mobile-Me the only special case, or is there a more general
rule about other places to find smtp server passwords?
- Original Message
From: Greg Guerin
To: list-cocoa-dev
Sent: Sat, 29 May, 2010 2:37:30 AM
Subject: Re: Stealing settings from Mail.app
Chris Idou
mac.com"]
Right now I'm using http://github.com/tcurdt/edmessage to send mails.
Does your framework have any benefits over that one?
- Original Message
From: Dante Palacios
To: Chris
Sent: Tue, 1 June, 2010 1:38:04 PM
Subject: Re: Stealing settings from Mail.app
Hi Chris,
BTW, what exactly are the downsides of sending the mail to local machine
sendmail?
___
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-admi
How does one get notification that a window has become visible? I can see
notifications for most every type of window event except this most obvious one.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or m
Is it? Can't a window become visible without becoming key?
- Original Message
From: Reinhard Segeler
To: Chris Idou
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 4 June, 2010 4:18:03 PM
Subject: Re: Notification of window visible?
The notification NSWindowDidBecomeKeyNotification
;
MyFramework.framework -> Headers" and can see the header is indeed missing. I
know this is the correct directory because I can see MyFramework.framework
being deleted when I clean the FW target.
Why would it not be exporting the file? Yes, I added it to the target when I
created the fil
On Jun 8, 2010, at 6:26 PM, Graham Cox wrote:
>
> On 09/06/2010, at 11:20 AM, Chris Tracewell wrote:
>
>> Why would it not be exporting the file? Yes, I added it to the target when I
>> created the file.
>
>
> Right-click the file in Xcode and set its role to
What kind of "drawing in their NSView" do these controllers do right now?
Perhaps that code should be in an NSView subclass and that subclass should be
used in both controllers' nibs.
-- Chris
On Jun 19, 2010, at 4:58 PM, Shane
wrote:
> I have an applications with tw
t throw any
compile errors. I have cleaned and built both the framework and linking project
a gizillion times hoping to jiggle something - but no luck.
Any suggestions?
- Chris
XCode 3.2.2 :: GC :: OS X 10.6___
Cocoa-dev mailing list (Cocoa-dev@lists.a
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
> On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell wrote:
>> I have my own custom framework. The framework builds fine but when I link to
>> it in one of my projects one class is causing a compile error of...
>>
>>
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:
> On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell wrote:
>> I have my own custom framework. The framework builds fine but when I link to
>> it in one of my projects one class is causing a compile error of...
>>
>>
I've got a core data database in sqlite format, and I thought I'd download a
utility to look inside it. But I've downloaded about 4 utilities that purport
to be able to open sqlite databases and none of them can open it, they give
errors along the lines of it being encrypted and needing a pass
OK, my stupidity, I was looking at a NSBinaryStoreType and not sqlite.
Next question: is there any utility for looking inside a NSBinaryStoreType?
- Original Message
From: Jens Alfke
To: Chris Idou
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 25 June, 2010 10:35:10 AM
Subject: Re
I've done a lot of core data development, but all using the XML file format.
Now I'm trying to work with sqlite. I've got an app that was working, but when
I change to sqllite I get errors. I've got a really basic application, nothing
particularly special about it as far as I see, and when I c
On Jun 24, 2010, at 6:59 PM, Graham Cox wrote:
>
> On 25/06/2010, at 7:52 AM, Chris Tracewell wrote:
>
>> Obviously, I have a setting wrong somewhere as it is seeing an older version
>> of the framework than I am linking to. Any thoughts where I should look?
>
>
According to the doco, the above method is used to "customise creation of the
persistent store" especially with regards to the store type. So I've been using
the below code, which works perfectly fine for NSBinaryStoreType and
NSXMLStoreType, but with NSSQLiteStoreType I get lots of merge erro
ff adding a +sharedSewAndColorController method that
returns a singleton instance (allocating one if it doesn’t exist yet).
— Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
XCode 4, 10.6 GC -- I have an IKImageBrowserView which I have implemented drag
and drop for. I have set my view controller as the image browser's drag
delegate, registered for pasteboard drag types in awakeFromNib and implemented
DnD protocol methods like so...
-(void)awakeFromNib
{
is world writable on 10.7; besides, it has the
> sticky (8) bit set, just like /tmp.
Does OS X really support the sticky bit? Lion's suggests "no",
though this line could be read a couple of ways:
#define S_ISTXT S_ISVTX /* sticky bit: not supported */
Chris
__
On 8 Aug 2011, at 16:02, Kyle Sluder wrote:
> On Aug 8, 2011, at 4:54 AM, Chris Ridd wrote:
>
>>
>> Does OS X really support the sticky bit? Lion's suggests "no",
>> though this line could be read a couple of ways:
>
> Yep, it's supported a
ng in the app and the framework. (And
-isEqual: implementations are generally smart about immediately returning YES
when passed self, but falling back when not.)
In short: Do like Apple, use an "NSString * const" global.
-- Chris
___
Cocoa-
as a symbol it can look up. That helps cut down on
typos when investigating bugs.
-- Chris
___
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
DEPRECATED_ATTRIBUTE. (Not able to check right now...)
Alternately, you could use an exports file to control visibility of what's
exported.
-- Chris
On Aug 10, 2011, at 4:06 PM, Daniel DeCovnick wrote:
> The disadvantage is if you need to use string constants across binaries (suc
ode examples of what I think I need.
The problem I have is that I cannot figure out how to get the reference to the
place where I am dropping the files in the Finder. What method returns the file
path string or NSURL of the drop location?
Thanks, Chris
___
is some more.
This is definitely a good approach - either to present a model-specific view
controller, or to have a generic "date picker controller" that implements a
delegate pattern or a selected date property (like, say, NSOpenPanel does).
-- Chris
_
you can set an object's custom
class. It's a mini-plist editor, so you can specify not just a key path and a
value, but the type of the value; the value can even be a localized string from
your nib's string table.
-- Chris
___
Coc
and on earlier versions
the user will get an alert indicating the required OS version.
-- Chris
___
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
Hello all,
I am trying to setup an internal application that prints PDF documents
in an automated fashion to a set of known internal printers. I have
played with the various vendor settings in the Print dialog in Preview
long enough to get a saved set of print options that produce the color
o e.g., stdout would be /dev/stdout. See if that works for you...
Chris
___
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.
r won't be
used. Why would that be ignored at all? What am I missing here?
Chris
For example (code simplified):
@interface...
{
NSString *userName;
}
@implementation...
-(void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
userName = NSUserName();
}
-(id)performDefaul
, let's just do our favorite NSLog
NSLog(@"%@", theCommand);
//[theConnection close]; //needed?
}
@end
---
Here's the SDEF in case that helps:
http://www.w3.org/2003/XInclude";>
- Original Message -
From: Martin Wierschin
erent classes now.
Chris
- Original Message -
From: Martin Wierschin
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Wednesday, August 31, 2011 7:47 PM
Subject: Re: Won't Applescript command use defined ivars?
> But I am going to need the application to use the instance of the class
gt; menu-bar though.
Just running a tool that links AppKit won't give it an icon and menu bar,
especially if you don't put it in a .app wrapper. However, actually running an
NSApplication within the tool will.
-- Chris
___
Cocoa-dev m
et to the least recent OS you want to run on (in this
case 10.6).
Furthermore, Xcode 3.2.6 and 4.0 added "Latest Mac OS X" and "Latest iOS"
options to the Base SDK pop-up, which is preferable to specifying a particular
OS version for the SDK against which you wish to build.
On Sep 6, 2011, at 4:44 PM, Ken Thomases wrote:
> On Sep 6, 2011, at 6:31 PM, Chris Hanson wrote:
>
>> Furthermore, Xcode 3.2.6 and 4.0 added "Latest Mac OS X" and "Latest iOS"
>> options to the Base SDK pop-up, which is preferable to specifying a
>&g
On Sep 6, 2011, at 4:50 PM, Shane Stanley wrote:
> On Sep 7, 2011, at 9:31 AM, Chris Hanson wrote:
>>
>> You should set your Base SDK to the most recent OS whose features you are
>> going to use (in this case 10.7) and set your Deployment Target to the least
>> recen
;t a wise one.
You're welcome to think anything you want about it. Nonetheless, it doesn't
change how developers should be building their software for OS X.
It's already how developers are used to building applications for iOS, so it
can't be that huge a burden.
-- Chris
__
;t need to worry about this, because 10.6.8 supports
weak-imported classes.
-- Chris
___
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(
dow or NSView, supporting KVO.
Instead you should use the notifications the component makes available
explicitly for notifying observers of interesting happenings.
-- Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
tAtIndex:index];
//testing return values
//return [NSURL
URLWithString:@"file://localhost/Users/chris.paveglio/Desktop/Using%20Native%20Ai%20Files.pdf"];
return[NSURLURLWithString:@"file://Volumes/Clippers2011/DTDWriteup/Team%203/%20%20Prep/Using%20Native%20Ai%20Files.pdf"];
}
CFRelease(quickLookIcon);
}
}];
}
returniconImage;
}
- Original Message -
From: Norbert M. Doerner
To: cocoa-dev@lists.apple.com
Cc: chris_paveg...@yahoo.com
Sent: Wednesday, October 5, 2011 3:14 AM
Subject: Re: Quicklook not working for network volume
for URLs on network
volumes, I usually Applescript and use Posix paths that start with
"/Volumes/..."
Chris
----- Original Message -
From: Kyle Sluder
To: Chris Paveglio
Cc: Norbert M. Doerner ; "cocoa-dev@lists.apple.com"
Sent: Friday, October 7, 2011 11:33 AM
Subject: Re: Qu
don't see a box to prevent/allow
selection reordering. I could hide the table headers and make my own text
labels, but I thought there'd be a simple on/off checkbox for this.
(XCode 3.2)
Thanks, Chris
___
Cocoa-dev mailing list (Cocoa-dev@li
suit our needs,
users can see immediately if it's the newest version). So far I've simply made
a variable or set the version number directly (as a string) in my AppDelegate
class, but if I could somehow use the Bundle Version or Bundle Version String
Short that would be great. Any sug
pdated, and then the originally selected row is reselected. This makes the
display function and update properly.
So my question is, is there a more elegant sort of way to do this kind of
multi-table display, using bindings and selections?
Thanks,
Chris
__
Cool, Thanks everyone!
- Original Message -
Subject: Re: Using version number in code
Chris,
You can get those values like this:
NSDictionary *infodict = [[NSBundle mainBundle] infoDictionary];
NSString *bundleVersion = [dict valueForKey:@"CFBundleVersion"];
NSString *sh
nt backgrounds
if set to something less than 1.0
[aboutWindowcenter];
[aboutWindowsetStyleMask:NSBorderlessWindowMask];
[aboutWindowmakeKeyAndOrderFront:nil];
}
I tried setting some of the settings in awakeFromNib but they didn't seem to
apply properly.
Thanks, Chris
Yes I did have that set... but when I unchecked it and rebuilt and ran it
again, then the window has a black rectangle around it with no transparency. I
tried moving most of those code lines to awakeFromNib, but none were successful.
>Sounds like your window is initially visible before it's had
>Where did you learn this voodoo?
I had tried it while at BNR (2009) and it worked, so I did not look into other
methods at that point, nor did I ask about it.
Yes I am using NSWindowController, but clearly not 100% correctly.
>I suspect you want to do [aboutWindow setOpaque:NO] instead of this
On Dec 17, 2011, at 6:02 PM, C.W. Betts wrote:
> Is there a way to put classes into some sort of array to go through and check
> if the UTI of a file matches up to any of the UTIs that the class can handle?
Classes are objects too, so you can put them in arrays and so on.
--
ass answers yes, that's the one you +alloc/-init to
actually keep around as the handler for a specific file.
-- Chris
On Dec 18, 2011, at 3:42 PM, C.W. Betts wrote:
> Thanks for the input everyone.
>
> For those curious, this is the final code:
> - (BOOL)application:(NSAppli
as a Core Data
data model and localizable strings file(s), it should put them in its
BUILT_PRODUCTS_DIR (or a subfolder) and your OS X and iOS projects should copy
them out of that and into their own resources.
-- Chris
___
Cocoa-dev mailing list (Co
I have to wonder why you're using CFPlugIn in the first place.
I strongly recommend using NSBundle and Objective-C for your plug-in
architecture, or plain CFBundle and functions & structs if you absolutely must
use C rather than objects for your plug-in architecture.
ID
and the based-on Part ID.
If you add a last-modified-date or generation-number to Part, you can use that
to detect when you need to propagate changes from the Part in the library to
the Part in a document.
-- Chris
___
Cocoa-dev mailing lis
. I'm not sure about your deadlock; does it still occur if you
don't use -performBlock: on your main-queue context but just interact with it
directly?
-- Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
st, image,
(CFDictionaryRef)[saveOptions imageProperties]);
CGImageDestinationFinalize(dest);
CFRelease(dest);
} //(dest)
} //(image)
//CALL ASOC FILE PLACER HERE
} //(result == NSFileHandlingPanelOKButton)
} ]; //savePanel
}
Thanks,
Chris
ot;z...@mac.com"
To: Chris Paveglio ; Cocoa Dev List
Cc:
Sent: Wednesday, February 8, 2012 12:53 PM
Subject: Re: drawing 1 bit images, and image resolution
I know this is somewhat lame, but could you use sips from a shell call to
convert your saved image to a tiff and delete the original?
st int rawDataSize = widthInPixels * heightInPixels;
unsigned char *rawData = (unsigned char*)malloc(rawDataSize);
NSUInteger lePixel;
for (row = 0; row < heightInPixels; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: d
I have been able to change the library to output Greyscale images now. It
required less work than I had thought.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
els; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: drawing 1 bit images, and image resolution
On 10/02/2012, at 3:54 AM, Chris Paveglio wrote:
still looking for a way to convert to 1-bit.
So what have you tried?
The
string in the NSAlert display? If I do NSLog
on the string displayed in the NSAlert it also logs properly. So why the
discrepancy in the Alert?
Thanks,
Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
eholder.
Thanks Kyle, Ken and Keary!
- Original Message -
From: Kyle Sluder
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Monday, February 13, 2012 1:22 PM
Subject: Re: Odd display of percent character
On Mon, Feb 13, 2012 at 9:04 AM, Chris Paveglio
wrote:
> I'm having an issue
contains the key/value pairs you wish to use as your "backstop" defaults. Then,
you can read that dictionary from the plist in the bundle on launch and call
[[NSUserDefaults standardUserDefaults] registerDefaults:]. This sets up the
key/value pairs i
I have experienced that an NSTableview which is bound to an array controller
will sometimes automatically sort when their column headers are clicked and
sometimes not. As an example, I currently have two windows, each with a
tableview bound to an array controller. One tableview sorts, the other
this point I could just move on and set my Array Controller's sortDescriptor
property but it just really bugs me to not know what line I am crossing that
disables the automagic functionality.
--Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.app
> On Fri, Feb 11, 2011 at 5:14 PM, Chris Tracewell wrote:
>> I have experienced that an NSTableview which is bound to an array controller
>> will sometimes automatically sort when their column headers are clicked and
>> sometimes not. As an example, I currently have two
Thanks in advance...
Chris
* * *
-(void)getJPEGFromAssetForURL:(NSURL *)url {
ALAssetsLibrary* assetslibrary = [[ALAssetsLibrary alloc] init];
[assetslibrary assetForURL:url
resultBlock: ^(ALAsset *myasset) {
ALAssetRepresentation *rep
e so
that I have the JPEG representation available that I can then put into
a file to transfer.
Any thoughts about how I can adjust my thinking and the app's design
to deal with these cases would help me understand this better.
Thanks in advance.
Chris
___
Matt, Kyle,
Thanks for taking your time to give me your thoughts on this. It's
good food-for-thought and "thought" is what I need now... Thanks!
Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post ad
file like this and retrieve the transparency (alpha) of those pixels.
>
> I can send you this TIF file, if you agree. It's only 42KB.
Have you looked at the file with the commandline libtiff tools eg tiffdump?
Chris
___
Cocoa-d
s advantage of
features of the most recent operating system while still being able to write
code that runs on the latest operating system; you’re using them correctly.
You simply need to be aware of when you’re using newer-OS features and wrap
them in runtime check
solution will be to modify HessianKit -- or any other framework
that presents an RPC-style interface[1] -- to follow the Cocoa convention of
returning BOOL (or a non-nil/nil object reference) to indicate success or
failure, and to fill in an NSError passed by reference if the caller desires
addition
d for use with LDAP. In
particular, no indefinite length encoding, strings can't be constructed, etc.
The lber-decode man page mentions this at the top.
Given this is all likely to be part of security data, I'd say use the crypto
libraries and/or OpenSSL t
flexible to the programmer that uses my API, and something that is
conventional ion its approach so that the programmer is using
something normal and not unusual.
Thanks in advance for any counsel on this...
Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.app
Did you
consider any of the other alternatives and if so what made you go with
the delegate approach?
Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderator
it ever. It's
an anti-pattern called "double-checked locking" and it's fatally broken under
most languages' memory models.
If you want to initialize a value once-and-only-once, use dispatch_once or (if
you need to support a
round in InGameViewController's implementation of -viewDidUnload and see
if you're doing anything that involves '[self view]' (or 'self.view' for you
dot-syntax people :) ).
.chris
--
Chris Parker
iOS Frameworks (UIKit)
Apple Inc.
e
the BSD-level socket(2) API if you like. Or you can use NSFileHandle or
CFSocket. Or any of a number of other wrappers.
-- Chris
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to t
// acquire lock immediately
[lock lockWhenCondition:0];
// do whatever thread A needs to wait for
// unlock in a state that allows thread A to run
[lock unlockWithCondition:1];
[lock release];
}
Hope this helps!
-- Chris
On May
101 - 200 of 1057 matches
Mail list logo