How to open web page upon pressing the button in cocoa using objective c -



How to open web page upon pressing the button in cocoa using objective c -

i have created 1 button in cocoa(mac) ,when press button want redirect web page. can 1 help me out.

to open url in browser need phone call [[nsworkspace sharedworkspace] openurl:url]

for webview included in nib, phone call loadrequest:url on webview's mainframe object.

for ex:

[[_webview mainframe] loadrequest:[nsurlrequest requestwithurl:[nsurl urlwithstring:urlstring]]];

objective-c cocoa button

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -