<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting the iPhone User Name</title>
	<atom:link href="http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Sat, 19 May 2012 05:15:17 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: iPhone Developer</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-5880</link>
		<dc:creator>iPhone Developer</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-5880</guid>
		<description>This is an Great tip John,  will surely check around with it. Surely this should be a publicly accessible API if not it should be in 3.1 indeed.</description>
		<content:encoded><![CDATA[<p>This is an Great tip John,  will surely check around with it. Surely this should be a publicly accessible API if not it should be in 3.1 indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-1407</link>
		<dc:creator>Eoin</dc:creator>
		<pubDate>Tue, 28 Apr 2009 13:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-1407</guid>
		<description>His code is perfectly accurate. On the simulator it will return the username of the user running the simulator process. The username the iPhone uses to run apps is mobile. All code is fine.</description>
		<content:encoded><![CDATA[<p>His code is perfectly accurate. On the simulator it will return the username of the user running the simulator process. The username the iPhone uses to run apps is mobile. All code is fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias Klonk</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-1050</link>
		<dc:creator>Tobias Klonk</dc:creator>
		<pubDate>Fri, 17 Apr 2009 13:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-1050</guid>
		<description>Ray, your Code dosen&#039;t work on iPhone, it just gives &quot;mobile&quot;. It works in the simulator as expected.</description>
		<content:encoded><![CDATA[<p>Ray, your Code dosen&#8217;t work on iPhone, it just gives &#8220;mobile&#8221;. It works in the simulator as expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Scott</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-1045</link>
		<dc:creator>Ray Scott</dc:creator>
		<pubDate>Fri, 17 Apr 2009 11:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-1045</guid>
		<description>When you say User Name in your post title, I thought you meant this:

	char* login = getlogin();
	NSString *nsLogin = [NSString stringWithCString:login];

You&#039;re getting the device&#039;s hostname. You can modify that to whatever you like. It doesn&#039;t have to have the person&#039;s name in it. Mine, for example, is &quot;Alien iPhone&quot;. My code above is getting the Unix username. 

Nice tip though :)</description>
		<content:encoded><![CDATA[<p>When you say User Name in your post title, I thought you meant this:</p>
<p>	char* login = getlogin();<br />
	NSString *nsLogin = [NSString stringWithCString:login];</p>
<p>You&#8217;re getting the device&#8217;s hostname. You can modify that to whatever you like. It doesn&#8217;t have to have the person&#8217;s name in it. Mine, for example, is &#8220;Alien iPhone&#8221;. My code above is getting the Unix username. </p>
<p>Nice tip though :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iphone app developer</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-1044</link>
		<dc:creator>iphone app developer</dc:creator>
		<pubDate>Fri, 17 Apr 2009 11:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-1044</guid>
		<description>This is an awesome tip John - will play around with it. Surely this should be a publicly accessible API if not it should be in 3.0.
&lt;em&gt;
[Thanks to Pascal, we now know there is a publicly accessible approach :)  john]&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>This is an awesome tip John &#8211; will play around with it. Surely this should be a publicly accessible API if not it should be in 3.0.<br />
<em><br />
[Thanks to Pascal, we now know there is a publicly accessible approach :)  john]</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://MobileDeveloperTips.com/core-services/getting-the-iphone-user-name.html#comment-1037</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Fri, 17 Apr 2009 08:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=2102#comment-1037</guid>
		<description>Why not just using [[UIDevice currentDevice] name] to get the name of the iPhone (since this seems to be the base of the currentHostname.

This is documented:

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/occ/instp/UIDevice/name

Pascal</description>
		<content:encoded><![CDATA[<p>Why not just using [[UIDevice currentDevice] name] to get the name of the iPhone (since this seems to be the base of the currentHostname.</p>
<p>This is documented:</p>
<p><a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/occ/instp/UIDevice/name" rel="nofollow">http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIDevice_Class/Reference/UIDevice.html#//apple_ref/occ/instp/UIDevice/name</a></p>
<p>Pascal</p>
]]></content:encoded>
	</item>
</channel>
</rss>

