Building Windows Store Apps for iOS Developers Jump Start...

12
Building Windows Store Apps for iOS Developers Jump Start Q&A Log Live Event Date: July 17, 2013 Page 1 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information. 08:49:38 PDT Question: Hi! Answer: Hi Dimitar! 08:52:19 PDT Question: Is there any alternative to touch screen technology ? Answer: Great to see you here, Sangram! Check out this video of a hands free interface http://www.youtube.com/watch?v=SF3RaOtIRcY 08:52:50 PDT Question: Hello from Kyiv! Answer: Welcome! 08:53:01 PDT Question: Hello Answer: Hi Edison! 08:58:29 PDT Question: hi all Answer: Thanks for joining! 08:59:00 PDT Question: HI all! Answer: Hi Andrey! 08:59:30 PDT Question: Hi everybody from Spain Answer: Hi LupyGL!

Transcript of Building Windows Store Apps for iOS Developers Jump Start...

Page 1: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 1 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

08:49:38 PDT

Question: Hi!

Answer: Hi Dimitar!

08:52:19 PDT

Question: Is there any alternative to touch screen technology ?

Answer: Great to see you here, Sangram! Check out this video of a hands free interface

http://www.youtube.com/watch?v=SF3RaOtIRcY

08:52:50 PDT

Question: Hello from Kyiv!

Answer: Welcome!

08:53:01 PDT

Question: Hello

Answer: Hi Edison!

08:58:29 PDT

Question: hi all

Answer: Thanks for joining!

08:59:00 PDT

Question: HI all!

Answer: Hi Andrey!

08:59:30 PDT

Question: Hi everybody from Spain

Answer: Hi LupyGL!

Page 2: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 2 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

08:59:49 PDT

Question: Hello from Edmonton, AB Canada

Answer: Thanks for joining us!

08:59:58 PDT

Question: Hello all

Answer: Hi Krishna!

09:00:10 PDT

Question: greeting society Here I am again I'm a little away from my defense obligations

Answer: Great to see you today!

09:00:45 PDT

Question: Hello from Sarasota, Florida!

Answer: Hi Andrew!

09:01:15 PDT

Question: Hi from Fremont, California

Answer: Hi!

09:20:03 PDT

Question: Is there development tool for iOS developers in Visual Studio?

Answer: Here is the best starting point for iOS devs http://msdn.microsoft.com/en-

us/library/windows/apps/jj945493.aspx and this link covers what you need to get set up on a Mac

http://msdn.microsoft.com/en-us/library/windows/apps/jj945492.aspx

09:20:39 PDT

Question: Hi, I just tried to redeem the code from the FAQ and it does not appear to work in MVA -

iOSJS ,any thoughts ?

Page 3: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 3 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

Answer: Hmmm, sorry about the hassle. Please send email to [email protected] and we will

hook you up.

09:29:21 PDT

Question: Is the whole show gonna be downloadable later on? Because it’s the night here so I won't be

able to stay with it till the end

Answer: Yes we will have it available for download next week on MVA.

09:41:32 PDT

Question: windows 8 works really well on the apple mac machine i have , I downloaded the 3 month

trial version and it runs fine on a virtual machine , really nice that Microsoft allows you to trial windows

for 3 months

Answer: Sharing

09:45:53 PDT

Question: Normal HP 64 with 8 GB Ram won't run 8.1 well. Promoting Apple hardware? What?

Answer: Just calling balls and strikes.

10:09:45 PDT

Question: Could you share the MSDN links that Jaime presented minutes ago?

Answer: The one with Windows 8 on Apple hardware info? http://msdn.microsoft.com/en-

US/library/windows/apps/jj945492

10:11:53 PDT

Question: great I love microsoft but I use macbook

Answer: Of course. No need to buy new hardware to get going.

10:13:34 PDT

Question: No, it was about design interfaces for Windows

Answer: We will have the slides available for download shortly and all the links should be included.

Page 4: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 4 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

10:32:24 PDT

Question: Is there a way to force Garbage Collection to collect memory from a specific object instead of

CollectAll method?

Answer: setting the object reference to null should do that

10:39:32 PDT

Question: What if iterating through a few hundred thousand items? Will setting each one to null when

done cause an immediate release, or a release of all only when the loop is done?

Answer: You just don't worry about it. The GC will take care of it over time.

10:43:55 PDT

Question: What is difference between method and a function?

Answer: There is not really any difference. Method is just scoped to a specific class.

10:49:49 PDT

Question: One of the reasons why iOS don't do GC, is battery life. It's expensive. Isn't this an issue on

small devices like Windows Phones?

Answer: It's not expensive. I've never seen it affect battery life.

10:51:58 PDT

Question: Difference between partial class and normal class.

Answer: Partial means that you can split the class across multiple source files

10:57:17 PDT

Question: In WinRT platform we 'lose' serial ports and Serial Port Profile in BT. How we can use for

example Thermal Printers(on a field) or barcode scanners.

Answer: Windows 8.1 address this. See this session from our Build conference for more info:

http://channel9.msdn.com/Events/Build/2013/3-9028

Page 5: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 5 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

10:57:58 PDT

Question: Is really necessary to have Windows 8 as OS to develop apps for that version of Windows? Or

VS 2013 would be enough?

Answer: Windows 8 is required to develop for Windows 8.

11:04:52 PDT

Question: this is great but I prefer OS X and iOS

Answer: Thanks, Angel. I think the point is that it is not either or. You can develop for both.

11:08:13 PDT

Question: That’s true! But I appreciate Microsoft's help and videos, something that apple doesn't had.

Answer: We're here to serve!

11:09:29 PDT

Question: And we are happy to learn.

Answer:

11:10:05 PDT

Question: Is it allowed to send messages to null as it is in Objective-C or that just crashes the app? (In

other words, do we need to check always if an object isn't null before sending it a message?)

Answer: Calling a method on a null object will throw an exception, yes

11:10:13 PDT

Question: I think as a tablet(not a personal computer) win 8 tablets have better future than ipad but

regarding PCs - Macs are the best

Answer: I think you're right on the tablet side. Not sure about the PC thing though.

Page 6: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 6 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

11:10:58 PDT

Question: though

Answer: Could you give an example of why you feel that way? We're always trying to improve.

11:11:43 PDT

Question: These things helped a lot in getting more depth in the programming and learning different

ways of programming

Answer: Yup. Very deep stuff. Your brain will definitely be bigger by the end of the day.

11:12:06 PDT

Question: ok, lets settle and agree in linux, ok?

Answer: What's that?

11:13:18 PDT

Question: It is already. This is my seventh live event...

Answer: Must be hard to walk around without tipping over.

11:15:33 PDT

Question: Yah. Balancing everything which makes everything simple and easy...

Answer:

11:22:05 PDT

Question: I agree with you Alex B I always use iPad, Macs, but win 8 tablet is just better than the iPad 4,

but Mac i personally think that could be "better" than pc, cause they design both hardware and

software, maybe in the future Microsoft can do the same and that will be great

Answer: Are you guys trying to gang up on me? You may have heard about the Surface. That would

qualify for what you mentioned. Once you try one you'll want to give up your Mac.

Page 7: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 7 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

11:23:24 PDT

Question: What type of databases can use in WinRT and Store applications?

Answer: I think Jaime will be getting into that later. You have full access to isolated storage of course. If

you mean structured SQL type stuff most devs use SQLite for that.

11:23:58 PDT

Question: but as a tablet - nice

Answer: It's both actually.

11:26:50 PDT

Question: There wasn't Objective-C equivalent for partial classes, but they do remind me Categories a

little bit...

Answer: Not an expert but I think you're right on that.

11:41:28 PDT

Question: Does this event cover persistence storage in Obj-C?

Answer: very little... it will be in the app model section in around 2.5 hours

11:42:03 PDT

Question: what project template was used for the example project?

Answer: -- For everything here, we used the Blank App template

11:46:27 PDT

Question: Minimum hard ware requirement? do we need surface

Answer: You do not need a surface to write an app.. anything that runs WIndows will suffice.. it can be

apple hardware running WIndows virtualized or on bootcamp..

11:47:44 PDT

Question: Matt, my understanding was that Visual Studio couldn't debug apps on a USB connected

device if you were using a virtual machine software like vmware fusion. Is that not the case?

Page 8: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 8 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

Answer: jpm, I am not sure I understand what 'usb connected device' means... if you want to do remote

debugging in a virtualized scenario you can also connect to debugger via IP address...

12:18:50 PDT

Question: Sean: Great overview of the async APIs. Helped me immensely as a total newbie to the C#

world.

Answer: Glad it helped! I've really found the async/await mechanism to yield easy to understand async

code and be very productive when coding.

12:30:00 PDT

Question: I can develop IOS Application for Iphone using Visual Studio 2012 ???

Answer: Hadrich, no you can't ... we are talking about building Windows Store apps.. not iOS apps..

12:36:19 PDT

Question: What happens with data integrity when we work with databases and use async operations? Is

it guaranteed automatically or do we need to take special precautions?

Answer: Albert, you have to care of the data when running asynchronous..

12:55:47 PDT

Question: A "good" approach if you want to develop apps for both platforms, Hadrich, is having a Mac

and a virtualized Windows inside it (a powerful Mac with enough memory and all, of course)... But of

course that'll never be the same as having one machine for each purpose...

Answer: Sharing

12:58:58 PDT

Question: Thanks Jaime. So I understand that ACID is guaranteed when we work with only one thread

but not when we work with more (and in that case is us who have to deal with that). Is that right?

Answer: Albert, it would come to database.. I did not think ACID is guaranteed ever, you have to

ensure.. For database async does not make a difference since all you are doing is offloading a sequence

of work to a background thread.. we did not replace any APIs (e.g. SQLite to be async)..

Page 9: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 9 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

13:19:22 PDT

Question: That's very similar to what we can do with Appearance on iOS... nice!

Answer:

13:24:58 PDT

Question: Similar but the XAML approach is much more powerful.

Answer: Sharing

13:29:15 PDT

Question: Yes, agree... I just saw the beginning, but have to definetly agree XAML seems much more

powerful!

Answer:

13:57:53 PDT

Question: Q: In .NET 4.5 we have a native MVVM framework or as .NET4.0 we need choose a 3th party

framework?

Answer: There are a few 3rd party MVVM frameworks but strictly speaking these are not really

necessary.

14:06:59 PDT

Question: Thank you, Ben ! In which cases do you think necessary a MVVM framework ? For example,

when we need a behavior.

Answer: You should probably be using MVVM all the time. It becomes really beneficial as your app

grows more complex. OR do you mean when do you need 3rd party frameworks. Many devs start with

3rd party frameworks and over time build out their own custom frameworks.

14:10:10 PDT

Question: using MVVM implies 0 code behind ?

Answer: 0 code behind is what you strive for but sometimes it's not possible. You should not go through

contortions to get to 0 code behind. Do what's right for your app

Page 10: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 10 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

14:14:59 PDT

Question: and what about using MVVM with PCL's ? 0 code behind ?

Answer: Yes. Moving your Data Models and View Models into Portable Class Libraries is great. It makes

your code more portable across Windows and Windows Phone (and with Xamarin even to iOS and

Android). So yes do that. But again I would not adhere to a very strict 0 Code Behind.

14:16:15 PDT

Question: Thanks Ben! The best part of watching live is able to have this chat and live responses. Really

thanks!

Answer: It's my pleasure. I would just ask that in return you hit the publish button and get your app into

the Store. Thanks for taking the time to join us.

14:24:14 PDT

Question: from where we can download presentation for this session?

Answer: You can download them from the FAQ tab. You may need to refresh your browser if the link is

not there.

14:29:19 PDT

Question: Sorry, but it is still unclear for me: - What are advantages when using a "MVVM Light Toolkit"

or "Caliburn.Micro"?

Answer: It saves you having to write all the MVVM code yourself. When you get started this can be

really useful. For many devs they just keep doing that. IT works so no need to change it. Some devs

prefer to write their own code and over time do that and move away from the FX. Make sense?

14:35:15 PDT

Question: As MVVM is extremely used across the Microsoft platform, WPF, WindowsPhone, Windows8,

I believe it would be interesting to have a JumPDTart discussing various topics to build an app using

MVVM. Such as "Behaviors", IoC, Dependency Injection container, Unit Tests, etc.. What you think

about?

Answer: Great feedback! We are working up a lot of courses for this summer, so stay tuned!

Page 11: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 11 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

14:43:45 PDT

Question: When the resources are low, how does the OS know which app to terminate?

Answer: It goes back in the time and terminates the app that is farthest back in the back-stack (i.e. the

oldest suspended one ).

14:51:09 PDT

Question: Does the speaker mean "Microsoft Account" when he refers to Live ID?

Answer: Yes the are the same thing now

16:29:49 PDT

Question: I started new project and tried to locate the "Blank App (xaml)" template for download in the

"Online" group but could not find it. Do I need .Net 4.5 installed to locate this template?

Answer: You shouldn't need to download the Blank template. It should be included in the "Windows

Store Apps" section of a new Visual C# project.

16:33:14 PDT

Question: I haven't heard anything about performance considerations or memory/battery conservation.

Are these not important issues in Windows 8, or just beyond the scope of today's training?

Answer: We touched on this in the App Model and PLM section, when on battery aggressive quotas are

placed on apps that are not in the foreground in order to preserve battery life. They are certainly

important, however. Is there anything specifically you would like to know about?

16:36:30 PDT

Question: Hi all, I am looking at eventually taking a certification exam. I'm wondering which tier I should

be looking at. Would MTA or MCSA be better?

Answer: The folks at the Born to Learn forums and study groups would be a good resource for

answering your question. http://borntolearn.mslearn.net/#fbid=99LFENTUQsw The MTA exams cover

the fundamentals of things and aren't necessarily specific to Microsoft technologies. The MCSA requires

much more know how and is a more advanced certification. It really depends on your goals. Just to

throw one more in the mix, MCSD is an interesting one too http://www.microsoft.com/learning/en-

us/mcsd-certification.aspx

Page 12: Building Windows Store Apps for iOS Developers Jump Start ...download.microsoft.com/download/1/8/3/183541DF-54BE-45A9-97F… · Building Windows Store Apps for iOS Developers Jump

Building Windows Store Apps for iOS Developers Jump Start

Q&A Log

Live Event Date: July 17, 2013 Page 12 of 12 DISCLAIMER: This information is provided to you for informational purposes only and is provided “as is.” Microsoft has not reviewed the information and it may contain inaccuracies. You bear the risk of using it. Microsoft makes no warranties, express or implied, as to the information.

16:42:03 PDT

Question: In iOS, your app can get kick-out of memory if memory availability gets too low. Is there

something similar in Windows 8? Also, iOS doesn't destruct objects until control is released back to the

OS. So allocating objects over and over again in a loop can consume huge amounts of memory even if

they are being released, because the OS won't actually release them until it is returned to. Is this similar

in Windows 8?

Answer: in Win8, Windows Store Apps that are not in the foreground will be suspended (freeze dried in

memory) or terminated (released from memory) depending on the availability of memory. C# is a

garbage collecting language, so object memory is periodically reclaimed if nothing is referencing that

object when the Garbage Collector runs.

16:50:03 PDT

Question: I do not have "Windows Store Apps" section in my VS2012 new project dialog. the sections I

have are: Recent, Installed and Online. Can I configure VS to add this section?

Answer: You should be able to navigate to Installed > Templates > Visual C# > Windows Store, and then

select the blank app template