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
Post a Comment