On May 26, 2011, at 22:56, Andrew Thompson wrote:
I believe this stems from a period in history when the unicode group believed
that they'd be able to fit all practical scripts into 65536 code points.
Which meant you could get away with all kinds of assumptions like 16 bit
types and UCS-2.
On May 26, 2011, at 8:00 PM, Graham Cox wrote:
I'm using random(), but every time I run my app I get the same sequence,
despite having this code in my app delegate's -appDidFinishLaunching method.
Clearly I'm not seeding it right, though I can't see why - I get a different
value for seed
Dear all,
I currently have an application which pastes objects from a given list of
saved objects (basically strings) to wherever the mouse if focused.
What I'm looking to do is paste these objects in RT format into various text
editors. Most notably - URL strings (e.g. http://example.com) such
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 5/26/11 9:52 PM, Graham Cox wrote:
On 27/05/2011, at 2:42 PM, Clark Cox wrote:
No. 'unsigned' is the same size on both 32- and 64-bit The only
built-in types that are different between 32- and 64-bits are:
signed long long (which is
Am 20. mai 2011 um 09.21 schrieb Jeffrey Walton:
I have an application with UIFileSharingEnabled. If the device is
tethered, a user can use iTunes (or other programs) to drop new files
or delete existing files. I would like to detect the changes.
Is there a 'directory change' (or similar)
Am 21. mai 2011 um 13.19 schrieb Nick:
Do you think that would be a bad idea to make it look identically (only
appearance, the functionality is completely different) to the original
QuickTime player?
That sounds like a bad idea, indeed. Depends on what you mean by the
functionality is
On May 26, 2011, at 10:32 PM, Jens Alfke wrote:
On May 26, 2011, at 7:15 PM, Kevin Bracey wrote:
srandom(time(NULL));
It’s never a good idea to seed a RNG with something guessable like this. (An
old exploit against the Netscape browser’s SSL implementation was made
possible in part
Which is the best way to show a video from YouTube on iphone like you see
when you implement MoviePlayerCotroller?
Does anyone have an example?
Thanking you in advance
An Example using MoviePlayerController
- (IBAction)playVideo:(id)sender {
[playButton setImage:playButtonImage
Regarding format specifiers, there is the String Format Specifiers section of
the String Programming Guide in Apple's Developer Documentation. Here is a
link to the web version:
On May 26, 2011, at 9:04 PM, Scott Ribe wrote:
It’s never a good idea to seed a RNG with something guessable like this.
Not all applications of random() have anything to do with security…
Agreed. But I didn’t say it was always a bad idea, just never a good one. :)
Seeding with something
On May 27, 2011, at 6:58 AM, Guillermo Moral wrote:
Which is the best way to show a video from YouTube on iphone like you see
when you implement MoviePlayerCotroller?
The hard part is determining the URL of the H.264-encoded video file, given the
URL of the YouTube page. I have no idea how
Thank you, Jim. Unfortunately your workaround doesn't work in my app either.
I presume it will work in a simple app. I'm tired of poking, so I'll have to
do the usual drill of rebuilding a replica of my app from a simple app piece by
piece and see where it breaks :(
Hi all,
I have been writing iPhone applications for a while now, with not too many
problems but I feel like I haven't fully grasped how an application should
be structured in terms of storing application objects. e.g. up to now, I've
created a header file, declared all the main objects e.g. app
A view controller controls a specific view hierarchy so it shouldn't be
reaching explicitly out to other view controllers to tell them to do something.
Depending on your specific situation, interested objects could register for
notifications when certain things change in the world, then one
Short version: How do I get -[NSLayoutManager usedRectForTextContainer:] to
quit ignoring attachments?
Long version: I'm using -usedRectForTextContainer: to calculate the drawing
height of a line of text that has already been laid out using
-glyphRangeForTextContainer:. I've found that, when
Yes, this is an every increasingly annoying bug. I filed a similar
issue (#9402554) and based on the duplicate bug # referenced, it
appears it has been around a while.
I've tried most of the solutions offered by developers before (from
AppleScripts to setting focus on the dock) and none have
On May 27, 2011, at 12:30 PM, Mark Munz wrote:
Yes, this is an every increasingly annoying bug. I filed a similar
issue (#9402554) and based on the duplicate bug # referenced, it
appears it has been around a while.
I really hope Apple just fixes this issue once and for all.
If you have
I am seeing a strange problem in a new app, where the standard blue highlight
which appears when mousing over NSMenuItems in NSMenus will suddenly stop
appearing in the app. So there is no longer visible feedback about which menu
item the mouse is over in any of the menus (including the main
I admit it: I’ve never gotten into Accessorizer. I’m sure it does a lot of
useful stuff that would save me a lot of time, but every time I try to use it I
look at its insanely busy window, start to feel dizzy, look at the
documentation, start to get really anxious and confused, and put it all
Hi all,
What is the correct way to test if two NSURLs refer to the same file
system object?
I've just learnt the hard way that one can have two URLs that refer to
the same file system object but because they are subtly different,
isEqual: returns NO:
ex:
file://localhost/Volumes/Disk/Users
vs
On May 27, 2011, at 4:13 PM, Sean McBride wrote:
What would best practice be? Convert to full path, and compare those?
Note: I'm not concerned about resolving symlinks or aliases.
Yeah, I think so. First test -isFileURL, then compare the -path properties.
Comparing paths has its own set of
On Fri, May 27, 2011 at 4:13 PM, Sean McBride s...@rogue-research.com wrote:
Note: I'm not concerned about resolving symlinks or aliases.
Jeez, I can read.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
[ [someURL absoluteURL] isEqual:[otherURL absoluteURL]] should return
correct results.
Cheers,
Peter
Am 28.05.2011 um 01:13 schrieb Sean McBride:
Hi all,
What is the correct way to test if two NSURLs refer to the same file
system object?
I've just learnt the hard way that one can have
What is the correct way to test if two NSURLs refer to the same file
system object?
I would lstat() the file paths and compare their inodes (st_ino) and
residing device inodes (st_dev).
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On 5/27/2011 4:35 PM, Jens Alfke wrote:
Comparing paths has its own set of pitfalls: even if you’re not
concerned about symlinks, there’s case-insensitivity to deal with. I’m
not sure what the best way is to deal with that. You could canonicalize
each path; or you could convert each URL to an
On May 27, 2011, at 4:45 PM, James Walker wrote:
On 5/27/2011 4:35 PM, Jens Alfke wrote:
Comparing paths has its own set of pitfalls: even if you’re not
concerned about symlinks, there’s case-insensitivity to deal with. I’m
not sure what the best way is to deal with that. You could
It is a bit of a knotty problem. I've ended up with:
- (BOOL)ks_isEqualToURL:(NSURL *)otherURL;
{
BOOL result = [self isEqual:otherURL];
// For file: URLs the default check might have failed because they reference
the host differently. If so, fall back to checking paths
if
On 28 May 2011, at 00:57, Douglas Davidson wrote:
On May 27, 2011, at 4:45 PM, James Walker wrote:
On 5/27/2011 4:35 PM, Jens Alfke wrote:
Comparing paths has its own set of pitfalls: even if you’re not
concerned about symlinks, there’s case-insensitivity to deal with. I’m
not sure
On 28/5/11 9:57 AM, Douglas Davidson ddavi...@apple.com wrote:
It shouldn't be necessary to go to FSRefs for this now that we have resource
properties such as
NSURLFileResourceIdentifierKey/kCFURLFileResourceIdentifierKey.
When you say now, you mean 10.6? Because neither appears in a search
On May 27, 2011, at 5:06 PM, Mike Abdullah wrote:
It is a bit of a knotty problem. I've ended up with:
- (BOOL)ks_isEqualToURL:(NSURL *)otherURL;
{
BOOL result = [self isEqual:otherURL];
// For file: URLs the default check might have failed because they
reference the host
On May 27, 2011, at 19:57, Douglas Davidson wrote:
If you were going to compare FSRefs (FSCompareFSRefs), you wouldn't need to
convert to a path, just use CFURLGetFSRef via toll-free bridging.
It shouldn't be necessary to go to FSRefs for this now that we have resource
properties such as
Douglas,
That's perfect! But for, shall we say, older cats :), would be
next best thing be CFURLGetFSRef() FSCompareFSRefs()? It seems
ideal since it solves the problem of needing to canonicalize paths.
Peter, I tried absoluteURL but it doesn't change the result when
the difference is
I've been meaning for a while to make a video on the One True Way to use
Accessorizer, but until then there's my blog:
http://www.notesfromandy.com/2011/03/21/accessorizer-at-last/
As it happens, Kevin today tweeted a page he put together called Accessorizer
Made Simple:
On May 27, 2011, at 7:51 PM, Sean McBride wrote:
That's perfect! But for, shall we say, older cats :), would be next best
thing be CFURLGetFSRef() FSCompareFSRefs()?
We just had another thread about this subject. For pre-10.6, yes, I think that
FSCompareFSRefs() is good. For 10.6, I
On May 27, 2011, at 7:12 PM, Andy Lee wrote:
I've been meaning for a while to make a video on the One True Way to use
Accessorizer, but until then there's my blog:
http://www.notesfromandy.com/2011/03/21/accessorizer-at-last/
As it happens, Kevin today tweeted a page he put together
OK, so after a bit more looking into this, it seems I need to convert a
string:
@http://example.com; into two NSData objects. One for RTF and one for HTML,
then add these to the pasteboard as different types.
What would you all suggest as the best way of converting the above string
into RTF and
36 matches
Mail list logo