Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Search Forums > Search Results

Showing results 1 to 50 of 212
Search: Posts Made By: qyn
Thread Thread Starter Last Post Replies Views Forum
Diagnose broken superdrive 1,521 Views / 2 Replies  
The superdrive in my 15" MBP recently died. It sounds like it works (disks spin up, etc) but the OS does not recognize it (disk not mounting, unrecognized in System Profiler).

I can live without...
Posted by qyn, on Feb 29, 2008 at 04:01 PM, in Mac Notebooks
Great. Thanks! 982 Views / 3 Replies  
Great. Thanks!
Posted by qyn, on Feb 5, 2006 at 11:10 AM, in Hardware Hacking
Swap quicksilver cpu? 982 Views / 3 Replies  
I have a quicksilver 733 (2001). I have an opportunity to acquire the processor card and accouterments from a quicksilver dual 800. Can I swap out my existing processor for the dualie?
Posted by qyn, on Feb 4, 2006 at 11:25 PM, in Hardware Hacking
Yeah, my confusion. For some reason, I had it in... 707 Views / 10 Replies  
Yeah, my confusion. For some reason, I had it in my head that he was using NSThread, not NSTask. NSLocks do nothing for NSTask.

But in my defense, they really are great for threads!
Posted by qyn, on Sep 20, 2004 at 01:08 PM, in Developer Center
The best way to control timing interaction... 707 Views / 10 Replies  
The best way to control timing interaction between different threads is via NSLock. When a thread tries to acquire the lock, it will either take the lock (if it's the first one), or block (if it's...
Posted by qyn, on Sep 19, 2004 at 09:27 PM, in Developer Center
In perl, you can do something like this: ... 552 Views / 3 Replies  
In perl, you can do something like this:


$text = "your full <html> text";

@chunks = split(/<.*?>/, $text);



Then @chunks will be an array of all text chunks in the document. In this...
Posted by qyn, on Sep 17, 2004 at 06:56 AM, in Developer Center
Not sure exactly what you mean, but I'd say... 701 Views / 7 Replies  
Not sure exactly what you mean, but I'd say pretty much no. I think it would be possible to write such a thing, though...
Posted by qyn, on Sep 15, 2004 at 11:43 AM, in macOS
The gcc command is definitely ANSI compliant, so... 800 Views / 18 Replies  
The gcc command is definitely ANSI compliant, so no worries there. For editing your files, there are many, many editors. BBEdit is the best (IMHO) but somewhat pricy. Goggling around will turn up...
Posted by qyn, on Sep 14, 2004 at 09:24 PM, in Developer Center
[myTableView rectOfRow:[myTableView selectedRow]]... 937 Views / 2 Replies  
[myTableView rectOfRow:[myTableView selectedRow]] is actually in view coordinates, not window coordinates. You need to first convert to the window coordinate system before moving to screen. You can...
Posted by qyn, on Sep 14, 2004 at 09:18 PM, in Developer Center
You could replace the real ssh app with a wrapper... 430 Views / 2 Replies  
You could replace the real ssh app with a wrapper that forwards calls to the real one (which you stashed somewhere) and back again. Would be pretty easy to do with a a perl script, for example.
Posted by qyn, on Sep 11, 2004 at 11:12 PM, in macOS
Actually, the image capture framework does this... 894 Views / 12 Replies  
Actually, the image capture framework does this for free (images, movies, whatever's on the camera). So iPhoto has to deliberately ignore them. It would be a very easy app for someone to write...
Posted by qyn, on Sep 10, 2004 at 11:16 PM, in Applications
Has anybody tried these proposed solutions? Not... 1,545 Views / 11 Replies  
Has anybody tried these proposed solutions? Not that I'm doubting your advice :), but I recently moved my iTunes library to a new drive, and the only thing that worked was letting iTunes do it by...
Posted by qyn, on Sep 10, 2004 at 09:45 AM, in Applications
That's a horrible bug, and I don't know why we're... 1,492 Views / 23 Replies  
That's a horrible bug, and I don't know why we're in this "you should backup" dogpile.

Sure, a backup would have been appropriate. But a bug like this is completely unacceptable, IMHO.
...
Posted by qyn, on Sep 9, 2004 at 07:36 AM, in Applications
If you didn't turn on any services, then no. ... 659 Views / 8 Replies  
If you didn't turn on any services, then no.

SSH access must be specifically enabled (Prefs->Sharing->Remote Login). The default OS X setup, even without the firewall, is locked down pretty tight.
Posted by qyn, on Sep 5, 2004 at 09:53 AM, in macOS
Warlords 2 is one of my all-time favorites. It... 6,253 Views / 107 Replies  
Warlords 2 is one of my all-time favorites. It runs perfectly under classic, though, so there's probably no point in carbonizing.

I would like Warlords 3 for OS X though...
Posted by qyn, on Aug 31, 2004 at 10:21 AM, in Gaming
Oops! What he said :). 510 Views / 5 Replies  
Oops!



What he said :).
Posted by qyn, on Aug 29, 2004 at 11:49 PM, in macOS
I believe you want to do something like this: ... 510 Views / 5 Replies  
I believe you want to do something like this:


perl -ip 's/Template/PTemplate' <files>


which replaces all string occurrences on all arg files "in-place". You might want to add a "backup"...
Posted by qyn, on Aug 29, 2004 at 08:24 PM, in macOS
First off, there's lots of perl editors floating... 581 Views / 3 Replies  
First off, there's lots of perl editors floating around, but XCode isn't one of them. BBEdit is good if you have it, google around for others.

The plug-in format doesn't appear to have any...
Posted by qyn, on Aug 27, 2004 at 01:57 PM, in Developer Center
Actually, it should be interpreting what's inside... 702 Views / 5 Replies  
Actually, it should be interpreting what's inside the <description> tag, and no, it's not HTML. It's just plain text. Again, I refer you to the relevant section of the DTD, which states:

...
Posted by qyn, on Aug 27, 2004 at 01:45 PM, in Developer Center
I don't think <br> is allowed in the RSS. If... 702 Views / 5 Replies  
I don't think <br> is allowed in the RSS. If NetNewsWire interpreted the <*> as XML, it was right to do so. I presume you're using the RSS 1 spec (much simpler than the 2.0). If so, you might want...
Posted by qyn, on Aug 26, 2004 at 09:27 AM, in Developer Center
Your problem most likely has nothing to do with... 521 Views / 2 Replies  
Your problem most likely has nothing to do with /etc/hosts. It seems a lot like an environment problem, but it's too hard to tell from your post what exactly went wrong. the simplest explanation is...
Posted by qyn, on Aug 24, 2004 at 06:28 PM, in Developer Center
You might try http://www.macosxhints.com/. They... 552 Views / 5 Replies  
You might try http://www.macosxhints.com/. They usually have a lot of shell stuff (in addition to lots of other goodies).
Posted by qyn, on Aug 24, 2004 at 10:28 AM, in macOS
My fav: Taco! http://www.tacosw.com 654 Views / 5 Replies  
My fav: Taco!

http://www.tacosw.com
Posted by qyn, on Aug 19, 2004 at 02:16 PM, in macOS
I've found that the time it takes me to... 2,105 Views / 5 Replies  
I've found that the time it takes me to design/implement/debug things like this in C (as opposed to ObjC) significantly outweighs any performance gains.
Posted by qyn, on Aug 18, 2004 at 06:22 PM, in Developer Center
You need to make a correct TemplateInfo.plist... 445 Views / 2 Replies  
You need to make a correct TemplateInfo.plist file, which defines some search-n-replace strings in your files. It's best to just look at existing templates and modify to suit your tastes.

Look in...
Posted by qyn, on Aug 18, 2004 at 03:32 PM, in Developer Center
If you want to just show them the content, you... 654 Views / 5 Replies  
If you want to just show them the content, you can use the readfile() command:


int readfile ( string filename [, bool use_include_path [, resource context]])


Or, if you want to do a...
Posted by qyn, on Aug 17, 2004 at 09:04 PM, in macOS
You can use the standard C sleep function: ... 44,845 Views / 4 Replies  
You can use the standard C sleep function:


sleep(5); // sleep for 5 seconds


(In the terminal, type "man 3 sleep" for documentation.)

You can also use the slightly more complicated...
Posted by qyn, on Aug 17, 2004 at 11:30 AM, in Developer Center
system() spawns a shell (in a separate process). ... 437 Views / 3 Replies  
system() spawns a shell (in a separate process). So your sub-process cd's to the directory just fine, but YOUR process stays put. Unless you use chdir().
Posted by qyn, on Aug 12, 2004 at 06:28 PM, in Developer Center
I think something else is wrong. I've been using... 615 Views / 2 Replies  
I think something else is wrong. I've been using that same bookmark with no problems, up to and including 10.3.5 (whatever version of Safari that is).
Posted by qyn, on Aug 12, 2004 at 03:08 PM, in Applications
Annoying thing about game vendor sites (mini-rant) 593 Views / 4 Replies  
Background:
I love non-real time strategy games (Civ et al).
I hate real time strategy games (Warcraft et al).

So I see this cool new strategy game listed on the MacNN front page called...
Posted by qyn, on Jul 30, 2004 at 04:06 PM, in Gaming
Re: A little perl help please... 537 Views / 3 Replies  
I think you just had a minor syntax error in the inner foreach loop (corrected above). Everything else looks good to me.
Posted by qyn, on Jun 24, 2004 at 08:06 PM, in macOS
Need help picking new internal hard drive 623 Views / 3 Replies  
I want to add another internal hard drive to my dual 800 G4 Quicksilver. I already have 2 internal ATA drives (the one it came with and one I added). It seems like adding a third will be more...
Posted by qyn, on Jun 20, 2004 at 08:23 PM, in Mac Desktops
Re: shell command 2 list open files? 554 Views / 3 Replies  
I think you're looking for the "lsof" command (/usr/sbin/lsof). Lists all open files and ports.

You might also be interested in the "fs_usage" command (/usr/bin/fs_usage, requires root), which...
Posted by qyn, on Jun 1, 2004 at 07:37 PM, in macOS
I think the only way to do it is to subclass the... 2,546 Views / 8 Replies  
I think the only way to do it is to subclass the cell. Then you can draw the text any way you like.

The way to do that (short version):

- Create a subclass of NSTextFieldCell
- Override -...
Posted by qyn, on May 12, 2004 at 02:44 PM, in Developer Center
The ftp server in the sharing pref is only for... 565 Views / 3 Replies  
The ftp server in the sharing pref is only for ftp, not sftp. As I recall, sftp runs via the sshd. So to get sftp running, you need to start remote login (aka sshd). But as I recall, I had...
Posted by qyn, on May 10, 2004 at 11:04 PM, in macOS
Actually, no. In fact, it will usually be the... 2,168 Views / 6 Replies  
Actually, no. In fact, it will usually be the other way around. A good discussion of this topic (designated initializers) is at developer.apple.com...
Posted by qyn, on May 7, 2004 at 02:18 PM, in Developer Center
The designated initializer for NSControls is... 2,168 Views / 6 Replies  
The designated initializer for NSControls is initWithFrame:(NSRect)frameRect. You should be putting your code there.

I've had a problem in the past with using subclassed controls in IB. If I...
Posted by qyn, on May 7, 2004 at 02:08 AM, in Developer Center
It only happens to me when the desktop starts... 622 Views / 6 Replies  
It only happens to me when the desktop starts getting pretty full. Perhaps the Finder can't find spots when things get too complex.
Posted by qyn, on May 5, 2004 at 01:20 PM, in macOS
Re: Re: Should we be quiet about Mac security? or tout it? 5,439 Views / 133 Replies  
This sentiment has been debated extensively in this thread. Regardless of whether you believe that to be true (which I don't), it's most definitely not a mere matter of "common sense".
...
Posted by qyn, on May 5, 2004 at 02:48 AM, in macOS
I find it strange that classic applications would... 472 Views / 1 Replies  
I find it strange that classic applications would care what kind of a socket is on the other end. If CFSocket correctly implements the Berkely socket APIs (which is claims to), then any socket in...
Posted by qyn, on May 5, 2004 at 02:40 AM, in Developer Center
Re: NSDictionary And Writing To It 1,137 Views / 3 Replies  
No, you're doing the right thing with the above code.

You can do what the example code does (dictionaryWithObject:), or you can create an NSMutableDictionary and add the items one by one. The key...
Posted by qyn, on May 3, 2004 at 01:34 PM, in Developer Center
I think that's a rather difficult project. You... 611 Views / 3 Replies  
I think that's a rather difficult project. You need to provide an interface for the shell, including handling the correct display of terminal escape sequences (e.g. color and clear and such).

If...
Posted by qyn, on May 1, 2004 at 11:23 PM, in Developer Center
Go to the terminal and type 'man ipfw' Tons... 463 Views / 2 Replies  
Go to the terminal and type 'man ipfw'

Tons of good info.
Posted by qyn, on May 1, 2004 at 07:55 PM, in macOS
I think you just have to remember it yourself. ... 558 Views / 5 Replies  
I think you just have to remember it yourself. In the collapse code, you'll have to store the
values lastTopFrame and lastBotFrame so you can retrieve them later. Cause otherwise they're gone...
Posted by qyn, on May 1, 2004 at 05:35 PM, in Developer Center
The last XCode update eventually came through... 1,886 Views / 35 Replies  
The last XCode update eventually came through software update, as I recall. I guess I'll be waiting for that this time...
Posted by qyn, on Apr 26, 2004 at 04:09 PM, in Developer Center
You really want the 'tr' command. I don't know... 655 Views / 5 Replies  
You really want the 'tr' command. I don't know of a good reference besides 'man tr' :)

But I would recommend using perl:


#!/usr/bin/perl

# Get the string in somehow
$in_string = "THIS...
Posted by qyn, on Apr 23, 2004 at 11:19 PM, in macOS
Disks sitting around?? I still use SuperPaint (v... 9,223 Views / 17 Replies  
Disks sitting around?? I still use SuperPaint (v 3.0) on a regular basis! I first installed it on my Mac Plus way back when, and used it on every Mac I've had since (4).

Sure, Photoshop is...
Posted by qyn, on Apr 21, 2004 at 08:00 PM, in Applications
Amen to that! Xcode presents me with a new... 842 Views / 6 Replies  
Amen to that! Xcode presents me with a new frustration just about every day.
Posted by qyn, on Apr 20, 2004 at 07:47 PM, in Developer Center
Well, it's true that I'm not a Java programmer,... 1,985 Views / 21 Replies  
Well, it's true that I'm not a Java programmer, but the link in my post points to Apple's developer docs for "Foundation Reference for Java". That implies it's available, no?
Posted by qyn, on Apr 19, 2004 at 03:17 PM, in Developer Center
You should use the Cocoa NSDate class. This has... 1,985 Views / 21 Replies  
You should use the Cocoa NSDate class. This has a method for comparing dates (among other things). You can also use the NSGregorianDate (a subclass of NSDate) for more fine-grained control.

...
Posted by qyn, on Apr 19, 2004 at 01:50 PM, in Developer Center
Showing results 1 to 50 of 212
 
Top
Privacy Policy
All times are GMT -4. The time now is 09:54 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,